Hi Telerik Team!
We have a method which exports a report to pdf file.
The problem is that generated file size is ~1MB (it's a simple PDF with logo and 3 or 4 text lines).
I read other post in this Forums and i see an answer about FontEmbedding but i can't configure this in my application.
My version of Telerik Reporting is Q2 2007 SP1 in a local application in C# 2.0
This is my method:
Hashtable deviceInfo = new Hashtable();
deviceInfo["FontEmbedding"] = "None";
deviceInfo["DocumentAuthor"] = "Businet";
byte[] reportBytes = Telerik.Reporting.Processing.ReportProcessor.Render(exportFormat, report, deviceInfo, out mimeType, out extension, out encoding);
reportName += "." + extension;
using (FileStream fs = new FileStream(reportsLocation + reportName, FileMode.Create))
{
fs.Write(reportBytes, 0, reportBytes.Length);
}
I think that deviceInfo is not applied because the generated file not have "Author" property.
Thanks for advance.