VS 2005, Crystal reports replaces chars when exporting to PDF.
-
Hi all, I have a form in which I load a .rpt file, populate som values and then export it into a .PDF file. Something goes seriously wrong here thou. All occurances of the letter t is replaced with ti or tt. All occurances of ti is being replaced with tt. So for an example out of the file. Should be Becomes after export to Adobe PDF --------------------------------------------------------- Mattias Mattas kommentarer kommentiarer Deviation Deviatton Skadat Skadatt Registrerat Registirerati I dunno why it does this. Has anyone else been out for it or am I alone in this matter? Below is the "export" part of the code
CrystalReportViewer1.ReportSource = rptDocument Me.rtStatus.AppendText("Exporting to PDF" & vbCrLf) Application.DoEvents() Dim CryRepExportoptions As New CrystalDecisions.Shared.ExportOptions Dim CryRepDestination As New CrystalDecisions.Shared.DiskFileDestinationOptions Dim CryRepTypeOptions As New CrystalDecisions.Shared.PdfRtfWordFormatOptions CryRepDestination.DiskFileName = IO.Path.GetDirectoryName(Reflection.Assembly.GetExecutingAssembly.Location) + "\PDFTemp\" & Ticket.ToString & ".pdf" CryRepExportoptions = rptDocument.ExportOptions With CryRepExportoptions .ExportDestinationType = ExportDestinationType.DiskFile .ExportFormatType = CrystalDecisions.Shared.ExportFormatType.PortableDocFormat .DestinationOptions = CryRepDestination .FormatOptions = CryRepTypeOptions End With rptDocument.Export()
I'm completely clueless in this matter. Any help would be greatly appreciated. :)