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.Cry stalReportProdu ctTickets cr = new
Lidl.BL.LidlBas e.CrystalReport ProductTickets( );
cr.SetDataSourc e(dsProducts);
CrystalDecision s.Shared.Export Options o = new
CrystalDecision s.Shared.Export Options();
o.ExportDestina tionType =
CrystalDecision s.Shared.Export DestinationType .DiskFile;
o.ExportFormatT ype =
CrystalDecision s.Shared.Export FormatType.Port ableDocFormat;
cr.ExportToDisk (CrystalDecisio ns.Shared.Expor tFormatType.Por tableDocFormat,
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:
CrystalDecision s.CrystalReport s.Engine.Intern alException was unhandled
by user code
Message="\rErro r in File C:\\TEMP\\temp_ b09f6dfc-a535-4bd7-
a025-1e2eba795367 {3F6F01B2-9F16-4F00-918D-098CD4743E1F}.r pt:
\nOperation not yet implemented."
Source="Crystal Decisions.Repor tAppServer.Data SetConversion"
StackTrace:
at
CrystalDecision s.ReportAppServ er.ConvertDotNe tToErom.ThrowDo tNetException(E xception
e)
at
CrystalDecision s.ReportSource. EromReportSourc eBase.ExportToS tream(ExportReq uestContext
reqContext)
at
CrystalDecision s.CrystalReport s.Engine.Format Engine.ExportTo Stream(ExportRe questContext
reqContext)
at
CrystalDecision s.CrystalReport s.Engine.Format Engine.Export(E xportRequestCon text
reqContext)
at
CrystalDecision s.CrystalReport s.Engine.Report Document.Export ToDisk(ExportFo rmatType
formatType, String fileName)
at Lidl.LidlIntran et.TicketPrinte r.PrintReport.P age_Load(Object
sender, EventArgs e) in C:\development\ LidlIntranet\Li dlIntranet
\TicketPrinter\ PrintReport.asp x.cs:line 56
at System.Web.Util .CalliHelper.Ev entArgFunctionC aller(IntPtr
fp, Object o, Object t, EventArgs e)
at
System.Web.Util .CalliEventHand lerDelegateProx y.Callback(Obje ct sender,
EventArgs e)
at System.Web.UI.C ontrol.OnLoad(E ventArgs e)
at System.Web.UI.C ontrol.LoadRecu rsive()
at System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)
InnerException: System.Runtime. InteropServices .COMException
Message="\rErro r in File C:\\TEMP\\temp_ b09f6dfc-a535-4bd7-
a025-1e2eba795367 {3F6F01B2-9F16-4F00-918D-098CD4743E1F}.r pt:
\nOperation not yet implemented."
Source=""
ErrorCode=-2147482649
StackTrace:
at
CrystalDecision s.ReportAppServ er.Controllers. ReportSourceCla ss.Export(Expor tOptions
pExportOptions, RequestContext pRequestContext )
at
CrystalDecision s.ReportSource. EromReportSourc eBase.ExportToS tream(ExportReq uestContext
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.Cry stalReportProdu ctTickets cr = new
Lidl.BL.LidlBas e.CrystalReport ProductTickets( );
cr.SetDataSourc e(dsProducts);
CrystalDecision s.Shared.Export Options o = new
CrystalDecision s.Shared.Export Options();
o.ExportDestina tionType =
CrystalDecision s.Shared.Export DestinationType .DiskFile;
o.ExportFormatT ype =
CrystalDecision s.Shared.Export FormatType.Port ableDocFormat;
cr.ExportToDisk (CrystalDecisio ns.Shared.Expor tFormatType.Por tableDocFormat,
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:
CrystalDecision s.CrystalReport s.Engine.Intern alException was unhandled
by user code
Message="\rErro r in File C:\\TEMP\\temp_ b09f6dfc-a535-4bd7-
a025-1e2eba795367 {3F6F01B2-9F16-4F00-918D-098CD4743E1F}.r pt:
\nOperation not yet implemented."
Source="Crystal Decisions.Repor tAppServer.Data SetConversion"
StackTrace:
at
CrystalDecision s.ReportAppServ er.ConvertDotNe tToErom.ThrowDo tNetException(E xception
e)
at
CrystalDecision s.ReportSource. EromReportSourc eBase.ExportToS tream(ExportReq uestContext
reqContext)
at
CrystalDecision s.CrystalReport s.Engine.Format Engine.ExportTo Stream(ExportRe questContext
reqContext)
at
CrystalDecision s.CrystalReport s.Engine.Format Engine.Export(E xportRequestCon text
reqContext)
at
CrystalDecision s.CrystalReport s.Engine.Report Document.Export ToDisk(ExportFo rmatType
formatType, String fileName)
at Lidl.LidlIntran et.TicketPrinte r.PrintReport.P age_Load(Object
sender, EventArgs e) in C:\development\ LidlIntranet\Li dlIntranet
\TicketPrinter\ PrintReport.asp x.cs:line 56
at System.Web.Util .CalliHelper.Ev entArgFunctionC aller(IntPtr
fp, Object o, Object t, EventArgs e)
at
System.Web.Util .CalliEventHand lerDelegateProx y.Callback(Obje ct sender,
EventArgs e)
at System.Web.UI.C ontrol.OnLoad(E ventArgs e)
at System.Web.UI.C ontrol.LoadRecu rsive()
at System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)
InnerException: System.Runtime. InteropServices .COMException
Message="\rErro r in File C:\\TEMP\\temp_ b09f6dfc-a535-4bd7-
a025-1e2eba795367 {3F6F01B2-9F16-4F00-918D-098CD4743E1F}.r pt:
\nOperation not yet implemented."
Source=""
ErrorCode=-2147482649
StackTrace:
at
CrystalDecision s.ReportAppServ er.Controllers. ReportSourceCla ss.Export(Expor tOptions
pExportOptions, RequestContext pRequestContext )
at
CrystalDecision s.ReportSource. EromReportSourc eBase.ExportToS tream(ExportReq uestContext
reqContext)
InnerException:
Thanks!
Kind regards,
Koen