D
denappel
Hi,
Yesterday I was facing a weird problem using Crystal Reports in
VS2008. I have to make print label for supermarket products.
They use an exotic lettertype for the price, being MarkerGD.
It appears that if I change the lettertype to a known one as century
gothic, the application doesn't crash.
My code is:
BL.LidlBase.CrystalReportProductTickets cr = new
Lidl.BL.LidlBase.CrystalReportProductTickets();
cr.SetDataSource(dsProducts);
CrystalDecisions.Shared.ExportOptions o = new
CrystalDecisions.Shared.ExportOptions();
o.ExportDestinationType =
CrystalDecisions.Shared.ExportDestinationType.DiskFile;
o.ExportFormatType =
CrystalDecisions.Shared.ExportFormatType.PortableDocFormat;
cr.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat,
filename);
It crashes on the call to ExportToDisk (see below for exception
detail)
Does anybody have a clue how to get it working with the MarkerGD
lettertype?
I'm sure that it's the font type, cause when I change the font to a
common one, the pdf gets created
without any error.
The error that I got is the following:
CrystalDecisions.CrystalReports.Engine.InternalException was unhandled
by user code
Message="\rError in File C:\\TEMP\\temp_b09f6dfc-a535-4bd7-
a025-1e2eba795367 {3F6F01B2-9F16-4F00-918D-098CD4743E1F}.rpt:
\nOperation not yet implemented."
Source="CrystalDecisions.ReportAppServer.DataSetConversion"
StackTrace:
at
CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception
e)
at
CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext
reqContext)
at
CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext
reqContext)
at
CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext
reqContext)
at
CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToDisk(ExportFormatType
formatType, String fileName)
at Lidl.LidlIntranet.TicketPrinter.PrintReport.Page_Load(Object
sender, EventArgs e) in C:\development\LidlIntranet\LidlIntranet
\TicketPrinter\PrintReport.aspx.cs:line 56
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr
fp, Object o, Object t, EventArgs e)
at
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender,
EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
InnerException: System.Runtime.InteropServices.COMException
Message="\rError in File C:\\TEMP\\temp_b09f6dfc-a535-4bd7-
a025-1e2eba795367 {3F6F01B2-9F16-4F00-918D-098CD4743E1F}.rpt:
\nOperation not yet implemented."
Source=""
ErrorCode=-2147482649
StackTrace:
at
CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions
pExportOptions, RequestContext pRequestContext)
at
CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext
reqContext)
InnerException:
Thanks!
Kind regards,
Koen
Yesterday I was facing a weird problem using Crystal Reports in
VS2008. I have to make print label for supermarket products.
They use an exotic lettertype for the price, being MarkerGD.
It appears that if I change the lettertype to a known one as century
gothic, the application doesn't crash.
My code is:
BL.LidlBase.CrystalReportProductTickets cr = new
Lidl.BL.LidlBase.CrystalReportProductTickets();
cr.SetDataSource(dsProducts);
CrystalDecisions.Shared.ExportOptions o = new
CrystalDecisions.Shared.ExportOptions();
o.ExportDestinationType =
CrystalDecisions.Shared.ExportDestinationType.DiskFile;
o.ExportFormatType =
CrystalDecisions.Shared.ExportFormatType.PortableDocFormat;
cr.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat,
filename);
It crashes on the call to ExportToDisk (see below for exception
detail)
Does anybody have a clue how to get it working with the MarkerGD
lettertype?
I'm sure that it's the font type, cause when I change the font to a
common one, the pdf gets created
without any error.
The error that I got is the following:
CrystalDecisions.CrystalReports.Engine.InternalException was unhandled
by user code
Message="\rError in File C:\\TEMP\\temp_b09f6dfc-a535-4bd7-
a025-1e2eba795367 {3F6F01B2-9F16-4F00-918D-098CD4743E1F}.rpt:
\nOperation not yet implemented."
Source="CrystalDecisions.ReportAppServer.DataSetConversion"
StackTrace:
at
CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception
e)
at
CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext
reqContext)
at
CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext
reqContext)
at
CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext
reqContext)
at
CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToDisk(ExportFormatType
formatType, String fileName)
at Lidl.LidlIntranet.TicketPrinter.PrintReport.Page_Load(Object
sender, EventArgs e) in C:\development\LidlIntranet\LidlIntranet
\TicketPrinter\PrintReport.aspx.cs:line 56
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr
fp, Object o, Object t, EventArgs e)
at
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender,
EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
InnerException: System.Runtime.InteropServices.COMException
Message="\rError in File C:\\TEMP\\temp_b09f6dfc-a535-4bd7-
a025-1e2eba795367 {3F6F01B2-9F16-4F00-918D-098CD4743E1F}.rpt:
\nOperation not yet implemented."
Source=""
ErrorCode=-2147482649
StackTrace:
at
CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions
pExportOptions, RequestContext pRequestContext)
at
CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext
reqContext)
InnerException:
Thanks!
Kind regards,
Koen