Click here to Skip to main content
12,455,917 members (46,649 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP.NET RDLC
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 4-Dec-12 1:37am
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

Rate this: bad
 
good
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 <>
  Permalink  
v3

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160826.1 | Last Updated 25 May 2015
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

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