Click here to Skip to main content
16,015,531 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Every One,

I am working in window project in vs2010. In this i am printing Barcode Stickers.
But Now my problem is that size of stickers. I am using "Citizen CLP-621"
printer.Problem is that i want to print stickers in portrait but when i decrease the height in rdlc report it convert into landscape orientation.

so if anyone have any idea that how can i set the custom width (3.5inch) and height(1.2inch) but paper orientation should be portrait.

if any one have idea then please help me!!!!
Posted
Updated 4-Dec-12 18:28pm
v2
Comments
battermaster 30-Oct-13 23:04pm    
I encounter this problem too.
The solution by others is that export it to EMF, and draw it in PrintDocument.
battermaster 30-Oct-13 23:05pm    
Anyone has any best way to solve it ?

1 solution

To set paper size custom width (3.5inch) and height(1.2inch)for Report:
open report file using xml or ex eitor and add two lines:


"page"
"=== add the next two lines: ==="
"pagewidth"3.5in"/pagewidth"
"pageheight"1.2in/pageheight"
"leftmargin"0.1in/leftmargin"
"rightmargin"0.1in/rightmargin"
"topmargin"0.1in/topmargin"
"bottommargin"0.1in/bottommargin>"
"/page"

replace " with <>
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900