cancel
Showing results for 
Search instead for 
Did you mean: 

RTF inccorect text when I export my Crystal Report to PDF

Former Member
0 Kudos

Hello,

I'm facing a quite unusual problem.

I've developped a VB.NET 2008 application for my customer that creates Crystal Reports from manually-entered text.

There's a part where the user can enter RTF text in a RichTextBox control, or import from a RTF File.

Here's what I do :

I'm typing a three-lines example in Word 2007 and save it in RTF.

Then I import it in my application into the RichTextBox.

When I display the report, everything looks fine, but when I export it to PDF, "i" letters are inserted after each "t" letter.

It looks like it appears only after a "bold"-ed text. Here's and example: [http://screencast.com/t/31t4X86XBs3]

I'm using CrystalReports Editor Included in Visual Studio 2008.

Has anyone already encoutered that issue ?

Regards,

Guillaume

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi, Guillaume;

That is pretty unusual.

How are you getting the text into the report?

What type of field is it in the report?

Have you installed our service pack for Crystal Reports for .NET 2008?

https://smpdl.sap-ag.de/~sapidp/012002523100009351512008E/crbasic2008sp1.exe

Regards,

Jonathan

Former Member
0 Kudos

Hello Jonathan,

I'm using a DataSet to pass the data to the report. The type of field is a String.

I'm using the Text Interpretation property, which I set to RTF Text (Located in <RightClick On the Text Field>/ "Paragrah" Tab/"Text Interpretation").

I've also already installed the Service Pack you mentionned, and it didn't solve the issue.

The weirdest thing is that when I export to RTF, Word, HTML or whatever any other format than PDF, it displays RTF text correctly.

I really don't get it. It seems to be a bug within the export-to-PDF feature.

You can easily reproduce the issue with the information mentionned above.

Former Member
0 Kudos

Hi;

I did try some simple testing here but was not able to duplicate the issue.

Are you using a particular font for the field in question? If you change the font, does it help at all?

One of my collegues recalls seeing something very similar to this, and in that case changing to a newer version of a font made the issue go away.

Best Regards,

Jonathan

Former Member
0 Kudos

Hello,

The font used is Calibri, And it certainly is up to date.

I'd rather believe that there is a problem in the export to PDF.

Try to display and export this portion of RTF, and tell me if you can reproduce the issue

http://twurl.cc/1aat

Regards,

Guillaume

former_member183750
Active Contributor
0 Kudos

See [this|https://forums.sdn.sap.com/click.jspa?searchID=29094456&messageID=7206473] forum thread for possible clues to a resolution. In a nut shell, as long as the Calibri font is up to date, the other two steps are;

1) Ensure you are using the latest Service Pack as suggested by Jonathan

2) See what USP10.dll is loading (use the [Modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip] utility)

Also, if this is a win app, compile it to an exe and run the exe to see if the issue persists. (when running the app exe, the USP10 loaded should be from the CR bin directory. when running ion the .NET environment, the USP10 will load from win\system or other)

Ludek

Edited by: Ludek Uher on Jul 16, 2009 10:57 AM

Former Member
0 Kudos

Hi ,

Even i am experiencing the exact same problem with the calibri font. I have changed the font and then tried to export to pdf and i guess it fixed the problem.

Hopefully SAP should release some kind of fix for this ......

former_member183750
Active Contributor
0 Kudos

Do a search for Calibri in these forums. From my experience, it has often turned out that the Calibri font it's self is quite problematic. And it depends on where it was obtained as to how it works. Also goole "calibri font issues" and you will find that there are OS and versions of the font problems. So, I would recommend downloading the font from Microsoft and making sure the version of the calibri font you have is designed to work on the OS you want to work with. As an example see this:

http://social.technet.microsoft.com/Forums/en-US/office2007deploymentcompatibility/thread/4c910161-a...

Ludek

Former Member
0 Kudos

Thanks Ludek,

I have changed my fonts to Microsoft Sans Serif . The fields are displaying correctly now.

Thanks...

former_member183750
Active Contributor
0 Kudos

Understood. There is something about Calibri that may need more investigation on my part. See the following thread, also an issue with calibri:

Unfortunately there are other issues at this time that got priority. One of these days...

Ludek

Answers (0)