Increase Image Quality of Charts (CR.NET)

D

Don Wash

Hi There!

I'm using CrystalReportsViewer control in my ASP.NET page to display the
report.

How do I increase the image quality of charts produced by Crystal Reports
..NET report file?

Many Thanks,
Don
 
G

Guest

Image quality? I know the control has a zoom property that can be set at design time to have the report zoomed at a level of your choosing. Try that and see how it goes
 
D

Don Wash

No, I mean currently it is rendered as JPG. I want to render as better JPG
quality or better image formats such as PNG.

Is that possible in Crystal Reports?

Don

Tampa .NET Koder said:
Image quality? I know the control has a zoom property that can be set at
design time to have the report zoomed at a level of your choosing. Try that
and see how it goes
 
G

Guest

I doubt you can do this; but you probably can't do much with the version included with VS.NET anyways. So, you may have to visit thier website and see if other options are avaliable
 
Joined
Jun 22, 2005
Messages
8
Reaction score
0
Crystal Reports in .NET - Chart Quality Solution!

Aha ... I have a solution for this. :cool:

Crystal Reports .NET (the version bundled with Microsoft Visual Studio .NET) has a number of features missing, but probably the most annoying is the low resolutions on charts and graphs.

It is possible to improve this however in TWO WAYS!

DISCLAIMER - This involves editing the registry. It is highly recommended that you backup your registry before making changes! I do not accept any liability for the consequences of anyone making changes to their registry based on the instructions in this post!

Firstly .. You need to add two Registry fixes.
Open the following .. Start --> Run --> regedit

Open the following Key:

HKEY_LOCAL_MACHINE -->
Software -->
Seagate Software -->
Crystal Reports -->
Export

Add a DWORD value called BitMapMagnifDenominator. Give it the value of 1

Add a second DWORD value called BitMapMagnifNumerator.
The value you should give this, is the same as the factor by which you want to scale up the resolution of your charts.
For example, if you want 2x the quality .. enter a value of 2.
If you want 5x the quality .. enter a value of 5.
(I found that either 2 or 3 gave a good enough quality for 99% of charting .. even at 400% zoom)

Once editing is done .. close regedit .. recompile (or reload) your .NET application .. and fire up those reports! Let me know how it goes .. and hopefully all will be good.

NOTE - Increasing the resolution of charts this way will impact your programs in 2 ways. (1) the image resolution being bigger will increase the memory requirements. Going from x2 to x3 increased the memory usage of a small Crystal Report Viewer Windows Form app by over 15mb!. (2) the image sizes are also larger for Web Forms .. so your Crystal Report pages on ASP.NET projects will take longer to load!


Secondly... If you are running ASP.NET web forms, then the Crystal Engine will use the same desktop resolution on the web-server to generate the reports. So if your desktop is running at 256 colour, then the graphs, charts and images will be rendered in 256 colour. So .. make sure your ageing web-server's resolution is up to scratch


Soo .. thats it!

enjoy everyone

Lemme know how you get on! :D

Martiankeeper
 
Joined
Jun 22, 2005
Messages
8
Reaction score
0
*bump*

awwww c'mon .. it took me MONTHS to finally find this ... you can't be telling me I was the only person using Visual Studio who couldn't work out how to increase CR.NET chart quality?

not a single comment?

:( *snif*
 
K

Kevin Spencer

Perhaps you should be asking Crystal Reports?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.
 
J

Juan T. Llibre

OK, do you want a virtual pat on the head or on your back ?

;-)



Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================
 
Joined
Jun 22, 2005
Messages
8
Reaction score
0
Juan T. Llibre said:
OK, do you want a virtual pat on the head or on your back ?

;-)

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================
[/color]

hehe .. well .. either :)

But to be honest I was hoping I would get some feedback to see if anyone else was having this problem. I used Crystal Report Writer Professional for years .. and when I came to CR.NET I was appalled at the chart output quality ...

Now .. either there was something I missed (which makes me a complete idiot, and award for "biggest newbie" wouldn't go amiss) ... or I had the same problem as everyone else (which means this post could be immensely useful).

I have searched and searched and searched ... from all sorts of Dev forums, the Business Objects (a.k.a. Crystal Reports) website, knowledgebase, forums and FAQ ...
finally (literally over 6 months after I first started looking) I found this little RegEdit gem ... and thought I'd share it ..

now .. has anyone even found this useful?

(thanks for the pat by the way .. appreciated ;) plsthxbye!)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top