Monday, March 26, 2012

GDI+ error when using TIFF in PRINTERDELIVERY sample

Hi,
I'm playing with the Printerdelivery sample in 2005 and having problems.
1. When I use the EMF Image type the printout for the rendered report is
larger then expected. The fonts seem larger and the lines of text are cut
off. I tried modifying the Device Info and add the DpiX and DpiY to 300, but
this gave me the same thing. Why does EMF make the rendered report larger
then expected.
2. When trying a diffent type such as TIFF I get the error "A generic error
occurred in GDI+." I don't know what this error my be indicating. Here is
my line from the sample
deviceInfo = String.Format(
System.Globalization.CultureInfo.InvariantCulture,
@."<DeviceInfo><OutputFormat>{0}</OutputFormat><StartPage>{1}</StartPage><PageHeight>{2}</PageHeight><PageWidth>{3}</PageWidth></DeviceInfo>",
"tiff", startPage, pageHeight, pageWidth);
Any help greatly apprciated.
David BotzenhartI'm having the same problem...did you find a resolution?
Thanks,
Gary
"David Botzenhart" wrote:
> Hi,
> I'm playing with the Printerdelivery sample in 2005 and having problems.
> 1. When I use the EMF Image type the printout for the rendered report is
> larger then expected. The fonts seem larger and the lines of text are cut
> off. I tried modifying the Device Info and add the DpiX and DpiY to 300, but
> this gave me the same thing. Why does EMF make the rendered report larger
> then expected.
> 2. When trying a diffent type such as TIFF I get the error "A generic error
> occurred in GDI+." I don't know what this error my be indicating. Here is
> my line from the sample
> deviceInfo = String.Format(
> System.Globalization.CultureInfo.InvariantCulture,
> @."<DeviceInfo><OutputFormat>{0}</OutputFormat><StartPage>{1}</StartPage><PageHeight>{2}</PageHeight><PageWidth>{3}</PageWidth></DeviceInfo>",
> "tiff", startPage, pageHeight, pageWidth);
>
> Any help greatly apprciated.
>
> David Botzenhart
>
>|||Check this out...
http://www.sqlmonster.com/Uwe/Forum.aspx/sql-server-reporting/3566/Printer-Delivery-Extension-Font-Problem
"GaryV" wrote:
> I'm having the same problem...did you find a resolution?
> Thanks,
> Gary
>
> "David Botzenhart" wrote:
> > Hi,
> >
> > I'm playing with the Printerdelivery sample in 2005 and having problems.
> >
> > 1. When I use the EMF Image type the printout for the rendered report is
> > larger then expected. The fonts seem larger and the lines of text are cut
> > off. I tried modifying the Device Info and add the DpiX and DpiY to 300, but
> > this gave me the same thing. Why does EMF make the rendered report larger
> > then expected.
> >
> > 2. When trying a diffent type such as TIFF I get the error "A generic error
> > occurred in GDI+." I don't know what this error my be indicating. Here is
> > my line from the sample
> >
> > deviceInfo = String.Format(
> >
> > System.Globalization.CultureInfo.InvariantCulture,
> >
> > @."<DeviceInfo><OutputFormat>{0}</OutputFormat><StartPage>{1}</StartPage><PageHeight>{2}</PageHeight><PageWidth>{3}</PageWidth></DeviceInfo>",
> >
> > "tiff", startPage, pageHeight, pageWidth);
> >
> >
> >
> > Any help greatly apprciated.
> >
> >
> >
> > David Botzenhart
> >
> >
> >

No comments:

Post a Comment