Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Crystal report crash with exotic font

Reply
 
Old 10-15-2008   #1 (permalink)
denappel


 
 

Crystal report crash with exotic font

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

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
CRystal report Visual basic 2005 .NET General
Changing Crystal Report data source to a function .NET General
How to connect crystal report with vb 6.0 VB Script
V.Studio 2003 - unable to edit Crystal Report .NET General
Re: Passing Parameters to a Crystal Report with a Subreport .NET General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46