Click here to Skip to main content
14,449,405 members
Rate this:
Please Sign up or sign in to vote.
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 19: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

Rate this:
Please Sign up or sign in to vote.

Solution 1

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 <>
   
v3

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100