Error when generating HTML and JPEG format report
I have used fast report to generating our reports in different format, it works for the most, but don't work for the format JPEG and HTML.
The error message for JPEG is below.
System.ArgumentException: Empty path name is not legal.
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode)
at FastReport.Export.Image.ImageExport.UB2D1yF43(Image , String )
at FastReport.Export.Image.ImageExport.ExportPage(Int32 pageNo)
at FastReport.Export.ExportBase.Export(Report report, Stream stream)
at FastReport.Report.Export(ExportBase export, Stream stream)
at ReportSender.GetReportJpegAsMemoryStream(
Report r)
The error for HTML is it generate a zero length data, but the data input for generating is the same.
The error message for JPEG is below.
System.ArgumentException: Empty path name is not legal.
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode)
at FastReport.Export.Image.ImageExport.UB2D1yF43(Image , String )
at FastReport.Export.Image.ImageExport.ExportPage(Int32 pageNo)
at FastReport.Export.ExportBase.Export(Report report, Stream stream)
at FastReport.Report.Export(ExportBase export, Stream stream)
at ReportSender.GetReportJpegAsMemoryStream(
Report r)
The error for HTML is it generate a zero length data, but the data input for generating is the same.
Comments