Page 1 of 1

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

Posted: Fri Jan 15, 2016 12:41 pm
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

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

Posted: Fri Jan 15, 2016 11:43 pm
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.

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

Posted: Mon Jan 18, 2016 7:48 am
by miroslav
Ivan, please see your PM.

thank you

Miroslav

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

Posted: Mon Jan 18, 2016 1:04 pm
by HighAley
Hello, Miroslav.

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

Thank you.