Export Exception - signed PDF, 'count' must be non-

Stimulsoft Reports.NET discussion
Post Reply
miroslav
Posts: 2
Joined: Fri Jan 15, 2016 12:32 pm

Export Exception - signed PDF, 'count' must be non-

Post by miroslav »

When we try to Export the report to signed pdf, I am getting this error. I think, this is a bug, because past version was without this exception...
[General Info]

Application: Stimulsoft Reports
Framework: v4.0.30319
Version: Version: 2015.3.0 from 1 December 2015
OSVersion: Microsoft Windows NT 6.1.7601 Service Pack 1

----------------------------
[Exception Info]
Message: 'count' must be non-negative.
Parameter name: count

Source: mscorlib

StackTrace:
at System.String.CtorCharCount(Char c, Int32 count)
at Stimulsoft.Report.Export.Tools.StiPdfSecurity.CreateSignature(Byte[] buf, Boolean getCertificateFromCryptoUI, String certificateID, Boolean useLocalMachineCertificates, Byte[] certificateData, String certificatePassword, Boolean& isGost, String& signedBy, Int32 offsetFilter, Int32 offsetSignedBy)
at Stimulsoft.Report.Export.StiPdfExportService.ExportPdf1(StiReport report, Stream stream, StiPdfExportSettings settings)
at Stimulsoft.Report.Export.StiPdfExportService.ExportPdf(StiReport report, Stream stream, StiPdfExportSettings settings)
at Stimulsoft.Report.StiReport.ExportDocument(StiExportFormat exportFormat, StiExportService exportService, Stream stream, StiExportSettings settings)
at Stimulsoft.Report.Export.StiExportService.DoExport(StiExportInfo info)
at Stimulsoft.Report.Export.StiExportService.StartExport(StiReport report, Stream stream, StiExportSettings settings, Boolean sendEMail, Boolean openAfterExport, String fileName, StiGuiMode guiMode)
at Stimulsoft.Report.Export.StiPdfExportService.form_Complete(IStiFormRunner form, StiShowDialogCompleteEvetArgs e)
at Stimulsoft.Report.Export.StiPdfExportService.Export(StiReport report, String fileName, Boolean sendEMail, StiGuiMode guiMode)
at Stimulsoft.Report.Viewer.StiViewerControl.OnProcessExport(Object sender)
at Stimulsoft.Report.Viewer.StiViewerControl.cmExport_Click(Object sender, EventArgs e)

----------------------------
[Assemblies]
mscorlib, Version = 4.0.0.0
Stimulsoft.Base, Version = 2015.3.0.0
Stimulsoft.Report, Version = 2015.3.0.0
Stimulsoft.Report.Design, Version = 2015.3.0.0
System.Windows.Forms, Version = 4.0.0.0

Thank you for fix.

regards

Miroslav
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Re: Export Exception - signed PDF, 'count' must be non-

Post by Ivan »

Hello,

We couldn't reproduce this bug.
Can you please send us a simple test project, which reproduce the issue?
Or at least specify used export settings?

Thank you.
miroslav
Posts: 2
Joined: Fri Jan 15, 2016 12:32 pm

Re: Export Exception - signed PDF, 'count' must be non-

Post by miroslav »

Ivan, please see your PM.

thank you

Miroslav
HighAley
Posts: 8413
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Export Exception - signed PDF, 'count' must be non-

Post by HighAley »

Hello, Miroslav.

Please, send your sample to support@stimulsoft.com.

Thank you.
Post Reply