Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem with Visio ExportAsFixedFormat

126 views
Skip to first unread message

Adrian

unread,
Jun 12, 2008, 9:51:01 AM6/12/08
to
Hi,

I'm trying to use ExportAsFixedFormat with a Visio Document.
ExportAsFixedFormat works well using other Office Programs (Word, Excel,
PowerPoint) but with Visio I'm getting an error "Invalid Parameter".

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?

Regards,
Adrian

Ashwini Rudra

unread,
Jan 24, 2011, 7:51:03 AM1/24/11
to
Hi use System.Reflection.Missing.Value;

for last parameter(FixedFormatExtClass).. "null" has issues with it. "Null" works well in VBA but in C# throws error.


> Submitted via EggHeadCafe
> ASP.NET Drawing a chart using OWC11 - Office Web Components
> http://www.eggheadcafe.com/tutorials/aspnet/601e9bc2-40ed-405e-b1b0-f416046b6698/aspnet-drawing-a-chart-using-owc11--office-web-components.aspx

0 new messages