This is a migrated thread and some comments may be shown as answers.

PDF Image Fuzzy

2 Answers 180 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 1
Gary asked on 04 Jun 2009, 09:57 AM
Hi

I have an invoice I have created with Telerik Reporting. When I export it to PDF the company logo is all grey and fuzzy. I have seen some post regarding this and change the display settings but it hasn't resolved it.

Here is the code i am using just incase it is related to that. I am also using Q1 2009.

               string mimType = string.Empty;  
                string extension = string.Empty;  
                Encoding encoding = null;  
                byte[] buffer = Telerik.Reporting.Processing.ReportProcessor.Render(  
                 "PDF", invoice, null, out mimType, out extension, out encoding);  
                FileStream fs = new FileStream("c:\\Invoice.pdf", FileMode.Create);  
                fs.Write(buffer, 0, buffer.Length);  
                fs.Flush();  
                fs.Close();  


2 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 04 Jun 2009, 11:37 AM
Hi Gary,

The code is correct and is just like in our documentation. The problem is most likely with the image itself - try changing its format i.e. try saving to png. gif or jpg and try with the different images to see if that makes a difference. Another possibility is if the image resolution is not good enough for the case where it is used. We can only guess though, as we do not have your image and pdf file.

Greetings,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Gary
Top achievements
Rank 1
answered on 04 Jun 2009, 11:47 AM
Hi Steve

I changed it to a png and that displayed correctly, thanks
Tags
General Discussions
Asked by
Gary
Top achievements
Rank 1
Answers by
Steve
Telerik team
Gary
Top achievements
Rank 1
Share this question
or