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

TIF rendering format is not available

2 Answers 64 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Shonda
Top achievements
Rank 1
Shonda asked on 13 Jan 2010, 09:57 PM
I have a Windows Forms App and I am getting the error TIF rendering format is not available when trying to use the RenderReport method of the ReportProcessor class.

Here is my code:
ReportProcessor reportProcessor = new ReportProcessor(); 
RenderingResult report = reportProcessor.RenderReport(strFileType, reportBook, null); 
using (fs = new FileStream(fileLocation, FileMode.Create)) 
    fs.Write(report.DocumentBytes, 0, report.DocumentBytes.Length); 
 

strFileType is set to tif
reportBook is a report book that contains 2 reports

I have both Telerik.Reporting and Telerik.RepotViewer.WinForms referenced in my app

Am I doing something wrong?


2 Answers, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 14 Jan 2010, 08:28 AM
Hi Shonda,

As explained in the Exporting a Report Programmatically help article, tiff is actually the image rendering extension and you should use "IMAGE" as strFileType.

Greetings,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Shonda
Top achievements
Rank 1
answered on 14 Jan 2010, 02:10 PM
Thank you very much.  This was a stupid mistake on my behalf.  This program has be running for nearly 4 months now so I just assumed that everything was correct.  I had the type "IMAGE" hard coded at one point and I much have inadvertently change it with out even thinking.

I guess that is what I get for assuming all was good, but another pair of eyes always helps point that out!
Tags
General Discussions
Asked by
Shonda
Top achievements
Rank 1
Answers by
Steve
Telerik team
Shonda
Top achievements
Rank 1
Share this question
or