Advertisements

ReportViewer Client Print Control “Unable to load client print control”?

From stack overflow

http://stackoverflow.com/questions/340151/reportviewer-client-print-control-unable-to-load-client-print-control

Unable to load Client Print Control!
Everytime, clients wanted to print report by clicking the button print on their report viewer, they always got this error message.

I had spent nearly two weeks to fix this problem.
My environment is:
– Window Server 2003 Standard Edition R2
– Report Server Version 10.X.X.X
– Clients with windowXP SP3
My Solution is:
– Replacing the CAP file (RSClientPrint-x86.cab) in C\Program Files\Microsoft SQL
Server\MSRS10.MSSQLSERVER\Reporting Services\ReportServer\bin\
– Extract the RSClientPrint-x86.cab and destribute it to clients.

Hear is the CAB file: https://sites.google.com/site/narithsite/Home/RSClientPrint-x86.cab?attredirects=0&d=1

 

 

 

Advertisements

Converting PDF to .tif

In case you happen to need to convert a PDF to a .tif this seems to be a good way.

Here is a commandline that should work well for letter-sized pages of a multi-page PDF file: (Using ghostscript)

gswin32c.exe -o page_%03d.tif -sDEVICE=tiffg4 -r720x720 -g6120x7920 input.pdf

In case you want to do this under program control you could use GhostSharp, https://github.com/mephraim/ghostscriptsharp




FileStream doesn’t release resources (using bitmap)

From here http://social.msdn.microsoft.com/forums/en-US/netfxbcl/thread/9abce4d0-d91b-49d2-9976-230e785bb750/

Image image = Image.FromFile(fileName);

Bitmap bmp = new Bitmap(image);

image.Dispose();

return Image.FromHbitmap(bmp.GetHbitmap());