Hi..
I'm having problem opening my exported word document.
Word comes up with a file conversion box. when i try to open it..
Hers my code..
fullpathname ="c:\\temp\\rammeavtale.doc";
rapporter.Rammeavtale1 ramme = new rapporter.Rammeavtale1();
CrystalDecisions.Shared.ExportOptions exportOpts = new CrystalDecisions.Shared.ExportOptions();
CrystalDecisions.Shared.DiskFileDestinationOptions diskOpts = new CrystalDecisions.Shared.DiskFileDestinationOptions();
CrystalDecisions.Shared.PdfRtfWordFormatOptions myformattypeoptions = new CrystalDecisions.Shared.PdfRtfWordFormatOptions();
exportOpts = ramme.ExportOptions;
// Set the export format.
exportOpts.ExportFormatType = ExportFormatType.PortableDocFormat;
exportOpts.ExportDestinationType = CrystalDecisions.Shared.ExportDestinationType.DiskFile;
// Set the disk file options.
diskOpts.DiskFileName = fullpathname;
exportOpts.DestinationOptions = diskOpts;
exportOpts.FormatOptions = myformattypeoptions;
ramme.Export();
Can anyone plz tell me why my report cant be opened using word xp.
I'm making the report using crystal report designer and Visual.stuid.net C#.
plz help...
I'm having problem opening my exported word document.
Word comes up with a file conversion box. when i try to open it..
Hers my code..
fullpathname ="c:\\temp\\rammeavtale.doc";
rapporter.Rammeavtale1 ramme = new rapporter.Rammeavtale1();
CrystalDecisions.Shared.ExportOptions exportOpts = new CrystalDecisions.Shared.ExportOptions();
CrystalDecisions.Shared.DiskFileDestinationOptions diskOpts = new CrystalDecisions.Shared.DiskFileDestinationOptions();
CrystalDecisions.Shared.PdfRtfWordFormatOptions myformattypeoptions = new CrystalDecisions.Shared.PdfRtfWordFormatOptions();
exportOpts = ramme.ExportOptions;
// Set the export format.
exportOpts.ExportFormatType = ExportFormatType.PortableDocFormat;
exportOpts.ExportDestinationType = CrystalDecisions.Shared.ExportDestinationType.DiskFile;
// Set the disk file options.
diskOpts.DiskFileName = fullpathname;
exportOpts.DestinationOptions = diskOpts;
exportOpts.FormatOptions = myformattypeoptions;
ramme.Export();
Can anyone plz tell me why my report cant be opened using word xp.
I'm making the report using crystal report designer and Visual.stuid.net C#.
plz help...