ASP.NET - CRYSTAL REPORT PRINTING - Asked By Prithivi Rajan on 11-May-12 07:19 AM

HAI SIR,

I USING BELOW CODE TO GENERATE CRYSTAL REPORT TO PDF DOC.

crystalReport.ExportToDisk(ExportFormatType.PortableDocFormat, Server.MapPath("Report_Data/Barcode.pdf"));


I USED BARCODE PRINTER . PAPER SIZE Bat Sticker  --- 3.65 WIDTH & 0.63 HEIGTH

WHEN I
EXPORT TO PDF IN LOCAL I GET ACCURATE OUPUT.. LIKE THIS



THEN I PUBLISHED IN ONLINE :

THE PAPER SIZE IS CHANGED TO A4 SIZE :

SEE THE BELOW OUTPUT:




IF I CHANGE THE PRINTER AND PRINT IT THE PAPER SIZE NOT CHAGED

I USING BARCODE PRINT TO PRINT :

BARCODE PAPER SIZE SETTING :




THESE IS MY PROBLEM IN LOCAL MACHINE IT GET EXACT OUTPUT BUT ONLINE [PUBLISHED] THE OUTPUT IS CHANGING

KINDLY GIVE A SOLUTION FOR THAT ... . . .


ADVANCE THANK U .


[)ia6l0 iii replied to Prithivi Rajan on 11-May-12 12:12 PM
Please turn the capslock off on your computer. 

For the solution, please visit the following thread and read the reply from "Stefano Crosatti"
http://social.msdn.microsoft.com/forums/en-US/vscrystalreports/thread/e16a1630-ad0c-4fda-8351-16e0807072eb

Hope this helps.
kalpana aparnathi replied to Prithivi Rajan on 11-May-12 02:48 PM
hi,

Use this referance link for steps for the pdf printer:

http://www.arsgeek.com/2007/05/17/5-steps-to-create-a-pdf-printer-print-to-pdf-in-ubuntu/

Regards,
Vikram Singh Saini replied to Prithivi Rajan on 12-May-12 09:14 PM
While exporting to pdf and printing same from CrystalReport on client system, the CR uses the default printer setting on the client pc. So that's the reason for unexpected behavior.
However I noticed that your pdf paper's font size is decreased on client side. So for that you can try the registry hack provided at link (describing your problem): http://amiraryani.wordpress.com/2010/03/25/font-size-problem-in-exporting-crystal-report-to-pdf-using-asp-net/
And second I found a suggestive solution for modifying crystal report size via programatic code at: http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/a256a9ce-40ba-41d8-8699-cd0427b7642b/  
Prithivi Rajan replied to Vikram Singh Saini on 14-May-12 08:47 AM
Hai Sir..

I Try that link but i till have the same problem ..

Any other way to export the same size of paper in crystal report..

Advance Thanks