Import And Export Visio Drawing

  • Thread starter Syed Khurram Alam
  • Start date
S

Syed Khurram Alam

Hi,



I am using Visio 2003 Drawing Control in my project for making drawings
using Visual C#.NET.



The control is working fine by saving and opening drawing files but I want
to save Visio drawing in graphic format like gif / jpeg or bmp format and
re-open the same saved images for editing.



Can anyone help me to find out how to implement import / export
functionality using Visio 2003 Drawing Control?



Thank you in advance.



Khurram Alam
 
S

Shahzad Godil

Khurram,

Have you tried export function. This will give you output of source in file
format such as .bmp, .dib, .dwg, .dxf, .emf, .emz, .gif, .htm, .jpg, .png,
..svg, .svgz, .tif, or .wmf..

Shahzad Godil
Karachi-Pakistan
Cell : 0345-2230535

Export Method
See AlsoApplies ToExampleSpecifics

Exports an object from Microsoft Office Visio to a file format such as .bmp,
..dib, .dwg, .dxf, .emf, .emz, .gif, .htm, .jpg, .png, .svg, .svgz, .tif, or
..wmf.

object.Export FileName

object Required. An expression that returns a Page, Master,
Selection, or Shape object to export.

FileName Required String. The fully qualified path and name of the
file to receive the exported object.



Version added
3.0

Remarks
The file extension indicates which export filter to use. If the filter is
not installed, the Export method returns a compiler error in your Visual
Basic or VBA project. The Export method uses the default preference settings
for the specified filter and does not prompt the user for non-default
arguments.

The Export method of a Page object supports saving to HTML file format using
the extension .htm or .html. When pages are exported, Visio uses the
settings that were last selected in the Save As dialog box.

If the specified file already exists, Visio replaces it without prompting
the user.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top