cancel
Showing results for 
Search instead for 
Did you mean: 

Poor Chart Image Quality After Upgrading to SP17

0 Kudos

Hi,

I have upgraded CR13 SP15 to SP17, then the chart image is showing in bad quality on my browser.

I'm using SAP Crystal Reports, version for visual studio, web application, VS2010

Images attached shows the differences before and after upgrade.

Any Ideas?

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Vinit - I'm using a dataset as my report data source so I've attached the report file only. And yes I'm viewing the report through CR Viewer.

Ido - I didn't touch the report and all the graphs types became blurry after upgrade to sp17.

0 Kudos

Hi Elias,

For some reason I can't download your report. Try adding it again.

The new GDIPlus API Ido mentioned is this.

I created a drop downlist box and then I set the viewer to the one selected:

LstInterpolationMode.Enabled = false;

Array CRinterpolationMode = Enum.GetValues(typeof(System.Drawing.Drawing2D.InterpolationMode));

foreach (object obj in CRinterpolationMode)

{

    //CRInterpolMode.GetTypeCode(CRinterpolationMode);

    LstInterpolationMode.Items.Add(obj);

}

LstInterpolationMode.SelectedItem = System.Drawing.Drawing2D.InterpolationMode.NearestNeighbor;

Under the View report button I added this line:

crystalReportViewer1.InterpolationMode = (System.Drawing.Drawing2D.InterpolationMode)LstInterpolationMode.SelectedIndex;

The default should be NearestNeighbor, try setting it in code and see if they resolves the fuzzy chart.

The problem is we now take advantage of the GDIPlus resolution modes but the Charting dll is 3rd party and we have not kept it up to date so it can't take advantage of the new functionality.

By default DEV should have left it at NearestNeighbor so not sure why it would affect your report.

I'll do some testing when I get a chance...

Don

0 Kudos

Hi Don,

I've tried to set CrystalReportViewer1.InterpolationMode to NearestNeighbor but it seems that InterpolationMode it is not a member of CrystalReportViewer class.

New files attached.

I couldn't upload the rpt file again but you can find it on http://www.filedropper.com/chartpie

0 Kudos

Hi Elias,

I don't see it, actually it looks clearer on my Windows 10 and IE 11 image.

Firefox is about the same, I don't have any other browsers installed.

Definitely not a pixilated as what you pasted into the post.

May have something to do with your Monitor, DPI settings etc.

CR is hardware and software reliant.

Have you tried installing the latest Video Card drivers?

Don

0 Kudos

Hi Don,

As I mentioned before this happened right away after I installed SP17 on my development machine and nothing else has been changed, so it was showing with no issues on SP15.

Currently If I'm viewing (by my development machine/screen) the report file through our production server which is still on SP15, the chart image is showing with no issues. but if I'm viewing the same report file from my development machine which is has SP17 the issue is there.

Attached screen shots and you will see the difference clearly on legend side.

Thanks.

0 Kudos

What browser are you using?

Can you clarify something, the image labelled Production (SP15) does look jagged and the DEV PC (SP17) image looks better...

Seems opposite from what you are saying?

Don

0 Kudos

Yes, the slice edges are jagged but the texts are more clear and readable (for this chart you can notice the legend is blurry).

Using windows 10 and IE 11

0 Kudos

mmmmm... I don't see the same using your report:

Is your app in production also running on a Windows 10 PC?

It could be a difference in GDIPlus.

Don

0 Kudos

Don,

I think you are focusing on the pie only!!! the pie itself doesn't look blurry very much but please look at the legend side and you will notice that it is.

The following http://www.filedropper.com/chartpie_1 is a report with a legend part contains text not numbers, please open it on your browser with CRViewer and when you compare it with the one from SP15 you will see the difference.

And remember, I got this issue after I've upgraded my dev. machine to SP17 and I have other dev. machines with same windows as mine but with CR SP15 showing the charts fine and clear (specially the legend), so I don't think it's something related to windows.

Thanks.

0 Kudos

I know you are concerned with the pie edges, I'm just stating they do look better.

The legend is too small to begin with, it does not look very clear in CR Designer either.

Something is off in this report, if I simply edit the chart the legends becomes bigger and much clearer.

Actually it's because the Legend Title font size is set to 4, change it to 6 and then it's readable in both CRD and the WEB viewer

See if that works for you.

Don

0 Kudos

OOOhh, it looks readable and fine now with font size changing, but now I have to double check and change tens' of reports (it is a headache). What else issues I can find I don't know.

Why the things are getting change when upgrading to a new SP?

0 Kudos

Hi Elias,

Great, why it changed is unknown. R&D said they did nothing to the .NET WEB form Viewer. Possibly changes to the Browser Engine maybe... I also asked them if anything other than some alignment fixes in SP 17 where implemented, waiting for the update.

Unfortunately there are no API's to get into that 3rd party Charting dll, 3D Automation used to have a SDK package that would work in CR SDK's but we have not kept it up to date so it's no longer available from them.

Only option is to adjust the Legend font size manually.

Don

Answers (2)

Answers (2)

ido_millet
Active Contributor
0 Kudos

I saw the same issue but only when setting the new interpolationmode property to HighQualityBicubic.

Is that your situation too, or are you seeing the chart degradation without touching that property?

former_member207665
Active Participant
0 Kudos

Hi Elias,

Please share your Crystal Report with saved data in it.

Also is the report viewed in the CR Viewer or you are exporting it to PDF.

Regards,

Vinit