Click here to Skip to main content
15,883,967 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I work on one c# desktop appication.in that i use Crystal Reports.In it there are one header and in header i put one static .jpeg image file .When i get report at that time the image in header is not display in good quality. But the original is in good dpi and also in good quality than also it display like below image url.

image url http://i.stack.imgur.com/bvMUt.jpg[^]

there are any solution for it ?
Posted
Updated 9-Sep-16 7:49am
v2

It can be done by using 'Retain Original Image Color Depth' in crystal reports.

I am using Crystal Reports bundled with Visual Studio 2015. Solution is as below-

1- Right Click on Crystal Report.
2- Click 'Report' from context menu.
3- Click 'Report Options' from sub context menu.
4- Now from the displayed dialog box check(on) the Retain Original Image Color Depth
5- Click OK.
6- Run your project.

That's it...
 
Share this answer
 
Assumption: you tried printing the same image with the same printer at the same scale (without Crystal Reports) and it printed well.

My personal solution to Crystal Reports problems was to stop using them and use the .NET 2D drawing classes. After a period of getting used to the layout logic I get exactly what I want. This includes graphics, text layouts, shaded backgrounds, etc. Furthermore, since data is laid out in the order you write them, you can layer text onto graphics*. Paging is, of course, available.

The same drawing tools can be used to decorate an application window - an added bonus to give your work that extra touch.







*graphic could be a form and you can have fill-in boxes on an image of a (scanned) form and print it WYSIWYG.
 
Share this answer
 
Solutions 2 works for me. Thanks.
 
Share this answer
 
Comments
Richard Deeming 5-Feb-21 8:51am    
If you want to vote on a solution, click the stars next to the solution.

If you want to comment on a solution, click the "Have a Question or Comment?" button under the solution and post a comment.

Do not post "Solution x works" as a new solution to the question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900