Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8985

The system cannot find the path specified.

$
0
0

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


Viewing all articles
Browse latest Browse all 8985

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>