|
-
Jul 18th, 2012, 04:15 PM
#1
[RESOLVED] Print using Custom size, different results on different Printers
I want to print an invoice 15,3 CM x 20,1 CM, it's a custom size. I'm using Microsoft Report in a Report Viewer in VB.NET.
Using my own Printer i managed to make it print aligning the paper to the right side of the Printer tray, but then after deploying to a Customer, he tried to print using an HP LAserJet 1018 (laser printer), paper can't be aligned left or right when using this printer, it has those "things" that immobilizes paper in a fixed position, the problem then was that it printed my invoice 1,5 CM moved to left, the exact distance between right side and the center (forced) position in this laser printer.
So my question is: Is there any universal way to print using Custom size paper? or i will have this nightmare for every different Printer that's used??
Thanks!
-
Jul 18th, 2012, 05:54 PM
#2
Re: Print using Custom size, different results on different Printers
I would add a new custom paper size to windows printer server
Then design the rpt using that new paper size
The problem is that I have to do in every pc that executes my app
This link show a way to do it in windows xp
http://www.bestprintingonline.com/ad...aper-sizes.htm
JG
... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...
-
Jul 18th, 2012, 07:03 PM
#3
Re: Print using Custom size, different results on different Printers
I entered to post this:
I've just found that from ReportViewer, at runtime, i can enter the Printer's properties and create a paper type (size and description), doing this it is printing perfectly, but it's not remembering my paper type selection so i'll see if i can do this using code, from VB.NET
And I see that's exactly what you say, looks like the right path, I'll also investigate further about adding this new size to windows printer server as you say, thank you very much.
Last edited by jcis; Jul 18th, 2012 at 07:07 PM.
-
Jul 19th, 2012, 12:31 AM
#4
Re: Print using Custom size, different results on different Printers
No solution till now, i added the new paper size to the Printer settings, also the rdlc file (report) contains the correct size verified by opening the file in a text editor (it's an XML file), i dont understand why report viewer is not showing the correct page setup, i mean my custom papersize, width and height are the same for both report and Custom papersize but it's still using A4 when Report Viewer open the Report.
Even if a go to Printer properties my Custom page size is the one selected, but Report Viewer Setup keeps showing A4 and if I print it's printed in A4. I repeat i can change this setting manually in report viewer page setup to my custom page size, doing this my invoice is printed correctly, but i dont want to make this manual selection each time i have to print an invoice, i need this to be done automatically.
EDIT: Doh! I thought the report size and my custom size were the same but i was wrong, width was different 20.1 cm / 21 cm. After fixing this Report Viewer shows the correct size when it opens. Fixed.
Last edited by jcis; Jul 19th, 2012 at 01:04 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|