Groups | Blog | Home
all groups > sql server reporting services > june 2006 >

sql server reporting services : Using pdf rendering with printer delivery extension



rsbossdaddy
6/15/2006 12:30:44 PM
Hi all. I've read a couple of threads and still haven't gotten this
working. When I run a data driven subscription with the printer
delivery extension and change the line

m_files = notification.Report.Render("IMAGE", deviceInfo);

to

m_files = notification.Report.Render("PDF", deviceInfo );

in the PrinterDeliveryProvider.cs class, I get a report that prints
everything too large and runs off the page to the right and on the
bottom.

Has anyone seen this? Are there more changes I need to make to the
code, or some type of additional configuration necessary on the report
server?

Any help is greatly appreciated.

Thanks!
rsbossdaddy
6/16/2006 5:47:09 AM
Please! Somebody help!
Tim Dot NoSpam
6/19/2006 12:00:00 AM
Are you using teh same deviceinfo xml string as for the IMAGE type? There
are differences.

See BOL specific to the device info settings you should pass PDF.

I will comment on the use of this though; aren't you reinventing the wheel
with PDF since it's already supported as a render type?
[quoted text, click to view]

rsbossdaddy
6/19/2006 7:44:28 AM
Thanks for responding. Actually, I tried to make some changes to the
deviceinfo string and recompile and now I get the error message :

A generic error occurred in GDI+.: at
System.Drawing.Imaging.Metafile..ctor(Stream stream)
at
Microsoft.Samples.ReportingServices.PrinterDelivery.PrinterDeliveryProvider.MoveToPage(Int32
page)
at
Microsoft.Samples.ReportingServices.PrinterDelivery.PrinterDeliveryProvider.pd_PrintPage(Object
sender, PrintPageEventArgs ev)
at
System.Drawing.Printing.PrintDocument.OnPrintPage(PrintPageEventArgs e)
at
System.Drawing.Printing.PrintDocument._OnPrintPage(PrintPageEventArgs
e)
at System.Drawing.Printing.PrintController.PrintLoop(PrintDocument
document)
at System.Drawing.Printing.PrintController.Print(PrintDocument
document)
at System.Drawing.Printing.PrintDocument.Print()
at
Microsoft.Samples.ReportingServices.PrinterDelivery.PrinterDeliveryProvider.PrintReport(Notification
notification, SubscriptionData data)

I've even recompiled with the unadultered sample code and deployed this
to the ssrs server and I get this pesky GDI+ error. I restarted the
windows service and iis and this won't go away.

Has anyone seen this?
AddThis Social Bookmark Button