A
AgnesLSJ
Hi,
I'm trying to use ExportAsFixedFormat with a Visio Document. I'm using
Office 2007 and Visual studio 2008.
Here is my code:
ApplicationClass visioApplication = new ApplicationClass();
Document visioDocument = visioApplication.Documents.Open(@"C:\temp.vsd");
visioDocument.ExportAsFixedFormat(VisFixedFormatTypes.visFixedFormatPDF,
@"c:\visio.pdf", VisDocExIntent.visDocExIntentPrint,
VisPrintOutRange.visPrintAll, 0, 0, false, true, true, true, false, null);
I've been trying different values for the bools and enums, but with no
success. All I get is a COMException telling me "Invalid parameter".
Any suggestions?
Thanks in advance.
I'm trying to use ExportAsFixedFormat with a Visio Document. I'm using
Office 2007 and Visual studio 2008.
Here is my code:
ApplicationClass visioApplication = new ApplicationClass();
Document visioDocument = visioApplication.Documents.Open(@"C:\temp.vsd");
visioDocument.ExportAsFixedFormat(VisFixedFormatTypes.visFixedFormatPDF,
@"c:\visio.pdf", VisDocExIntent.visDocExIntentPrint,
VisPrintOutRange.visPrintAll, 0, 0, false, true, true, true, false, null);
I've been trying different values for the bools and enums, but with no
success. All I get is a COMException telling me "Invalid parameter".
Any suggestions?
Thanks in advance.