cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Crystal Report Viewer Chart Font Issue

notagenius
Explorer
0 Kudos
768

I created a report in crystal report 2020 and it contains charts.

the font for the charts axis's are arial and when i preview it in the designer it looks good.

When the report gets loaded in visual studio report viewer the fonts on the charts are all congested and bolded.

I'm using SP36.

 

GoodGoodBadBad

Accepted Solutions (1)

Accepted Solutions (1)

DonWilliams
Active Contributor
0 Kudos

R&D had another look at the chart and here's how to fix it:

Hi Don,

The difference of the rendering caused by GDI+ could be quite hard to fix…

However after I investigated more on this report, I found the issue could be workaround…just open report in CRDesigner, right click the chart and select “Chart Expert…”, then switch to the Text tab:

DonWilliams_0-1728506439337.png

Select the Group title, then click Font button on leftside, you could see the Bold was selected as Font style, just change it to Regular then click OK.

DonWilliams_1-1728506439340.png

Also change the Data title as well, click OK button on Chart Expert dialog to save the change. Save the report and view it in Winform Viewer:

DonWilliams_2-1728506439347.png

It looks same as in CRDesigner now😊

notagenius
Explorer
0 Kudos
Just tested and it works!
notagenius
Explorer
0 Kudos
Just tested and it works! thanks for your help

Answers (1)

Answers (1)

DonWilliams
Active Contributor
0 Kudos

Just to clarify are you viewing the report using the Embedded Report Designer in Visual Studio or in your application?

If using the Embedded report Designer then that is normal, it's not a true view of what the report will look like in your application.

notagenius
Explorer
0 Kudos
Viewing the report in my application
DonWilliams
Active Contributor
0 Kudos

Can you use dummy data and save the report with data and then rename the file to *.txt and attach the file to the post and I'll have a look?

notagenius
Explorer
0 Kudos

won't let me attach the report with the extension renamed to .txt

  • The attachment's testreport2.txt content type (text/plain) does not match its file extension and has been removed.
DonWilliams
Active Contributor
0 Kudos
I sent you a direct message, you can send it to me that way... Don
DonWilliams
Active Contributor
0 Kudos

Got the Report, right, it doesn't have the ability to add attachment either but I got it from your drop box.

I noticed you don't have any printer selected so it's using GDIPlus32.dll to format and some of your default printer properties.

It can cause issues moving the report from PC to PC, so always highly recommended to use a real printer.

Once you do that send me the new report.

I do see there is a difference.

Go into Page Setup and select a real printer, save the report and test again. Check on Dissociate also.

Then when you select File, Print you'll see a printer saved and listed on the dialog box I used my default:

DonWilliams_0-1727504037592.png

I'll send it off to R&D and see what they have to say...

Don

notagenius
Explorer
0 Kudos

updated the default printer and checked off dissociate checkbox, still having the issue.

I've sent you the updated report.

DonWilliams
Active Contributor
0 Kudos
Still waiting for R&D to respond
DonWilliams
Active Contributor
0 Kudos
R&D said it's due to issue in GDIPlus dll which belongs to Microsoft and tough to fix the issue. They didn't say if there was going to be any fix for it though... I asked for more info