on 01-23-2015 12:30 AM
Hi,
I have the following error when trying to export a document in c# (visual studio 2010) with a specific font:
The system cannot find the path specified.
The font is bar code 39 e (http://www.barcodingfonts.com/). I don't know if it is relevant but it is marked as not embeddable.
It works with other barcodes fonts.
The version of the assemblies I'm using is 13.0.2000.0
Process monitor does not show anything, so I don't know what path it tries to access.
I've seen other posts and this seems to be a catch all error so I'm at a loss to troubleshoot the problem.
Here's the code:
CrystalDecisions.ReportAppServer.ReportDefModel.ExportOptions exportOptions = new CrystalDecisions.ReportAppServer.ReportDefModel.ExportOptions();
exportOptions.ExportFormatType = CrystalDecisions.ReportAppServer.ReportDefModel.CrReportExportFormatEnum.crReportExportFormatPDF;
CrystalDecisions.ReportAppServer.ReportDefModel.PDFExportFormatOptions PDFexportOptions = new CrystalDecisions.ReportAppServer.ReportDefModel.PDFExportFormatOptions();
PDFexportOptions.StartPageNumber = 1;
PDFexportOptions.EndPageNumber = 2;
PDFexportOptions.CreateBookmarksFromGroupTree = true;
exportOptions.FormatOptions = PDFexportOptions;
var test = crs.ReportDocument.ReportClientDocument.PrintOutputController.ExportEx(exportOptions).ByteArray;
It's the last line that throws the exception. I have also tried with
crs.ReportDocument.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, "c:\test.pdf");
and I get the same error.
Thanks
Hello,
Fonts must be True Type and according to their licensing:
Embedding in PDFs: The retail version of these fonts will not embed in a pdf file. Embeddable fonts for pdf files require a special license.
Do you have the Special License? If not use a different one.
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.