Friday, 15 May 2015

pdf - C# console app export crystal report error -


The following codes are running fine on my PC, but when I publish the app on the server and install it Error is a console app that targets Net WorkForm 4 Crystal Reports Support Pack 13. I have runtime engine X64

  string PDF = environment on the server Gatefolter Path (System. Enterprise. Specialfolder) is installed. Desktop Directory) + "\\ zzz.pdf"; String RPT = Environment Gatefolder Path (system environment. Special folder. Desktop directory) + "\\ zzz.rpt"; Report document cryRpt; CryRpt = new report document (); CryRpt.Load (rpt); CryRpt.SetDatabaseLogon ("******", "*******"); //cryRpt.ExportToDisk (CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, pdf "); MemoryStream MemoryStream = New MemoryStream (); Stream ExportStream = RRRPT.exportTostrem (ExportFormat TypePortableFormat); ExportStream.Copyto (MemoryStream); Byte [] Content = Write to PDF from MemoryStream.ToArray (); // Memory Stream; Use of Console.Print (PDF); Use (FileStream FS = File.creative (PDF)) {F. White (Content) I, 0, (int.) Content);}  

This is an error when I am using "ExportToStream", gives me an error as the following. Export it to disk then instead of using ExportToSteam, gives me the same error. Don; t is available when I am exporting it as a stream, then I am pointing to any location, it Why throws me "system does not find the specified path Can "


No comments:

Post a Comment