Printing a "label" on standard printer that is a center feed

Stimulsoft Reports.NET discussion
Post Reply
apdev
Posts: 1
Joined: Tue Aug 27, 2013 4:28 pm

Printing a "label" on standard printer that is a center feed

Post by apdev »

Hey all,

I have made a custom label that is the size 4.5 x 10 inches. It prints on a standard printer. In code i set the page height /width to 8.5 x 11 and on normal printers it prints just fine (aka the portions that need to be printed show up on the label because they put the label on the far left of the feed of the printer) However with center feed printers (feeds that work from the inside out) it prints incorrectly, its getting cut off obviously because i set it to 8.5 x 11. So i set the page height / width to exactly 4.5 x 10 inches and it still prints as if 8.5 x 11.

page.PageHeight = 10;
page.PageWidth = 5;
page.Margins = new StiMargins(.22, .2, .17, .1);
page.Orientation = StiPageOrientation.Portrait;

if I set the paper kind to

page.PaperSize = System.Drawing.Printing.PaperKind.DLEnvelope;

it prints centered but DL Evelop is only 8.66 height i need it taller. If i set the height in code to 10 it defaults to 8K paper size and prints to the left again..

page.PaperSize = System.Drawing.Printing.PaperKind.DLEnvelope;
page.PageHeight = 10;
page.Margins = new StiMargins(.22, .2, .17, .1);
page.Orientation = StiPageOrientation.Portrait;

I know this is pretty confusing hopefully maybe some have some insights on what i can do for center feed printers.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Printing a "label" on standard printer that is a center

Post by HighAley »

Hello.

Please, try to set the PaperSize to Custom.
Also check the printer settings.

Thank you.
Post Reply