A
Aleks A
I have the following C# code:
public void SaveFile(string infile, string
outfile)
{
Application app = new Application
();
app.Documents.Open(infile);
app.ActiveWindow.PageAsObj.Export
(outfile);
app.ActiveWindow.Close();
app.Quit();
}
It works fine for single page Visio docs, but it would not
export all of the pages in a multi-page document. How
would I set this up? Do I have to iterate through the
pages collection, and if so, how would I be able to
achieve this?
public void SaveFile(string infile, string
outfile)
{
Application app = new Application
();
app.Documents.Open(infile);
app.ActiveWindow.PageAsObj.Export
(outfile);
app.ActiveWindow.Close();
app.Quit();
}
It works fine for single page Visio docs, but it would not
export all of the pages in a multi-page document. How
would I set this up? Do I have to iterate through the
pages collection, and if so, how would I be able to
achieve this?