Other Software > Developer's Corner
change page size for default printer
stophereareyou:
Is there any way to change the page/paper size of custom paper (set as default for printer), or add new custom sized paper in printer settings
Stoic Joker:
Detail given are insufficient...is this for a program you are writing, using, or trying to configure?
stophereareyou:
Detail given are insufficient...is this for a program you are writing, using, or trying to configure?
-Stoic Joker (September 20, 2012, 11:14 AM)
--- End quote ---
well actually I've written a program in c#.net, and the report shows records of purchased or sold items, printing on paper roll but there is no option (default or whatsoever) to set no height for paper so it will automatically print only records and set paper position to tear off position (epson lx 300+ II),
what happens is records print on page of given height if a single record printed on second page (as per set paper height) the printer feed the paper out till that paper height + tear off settings height...
and it has to manually reversed in printer...
tried many things but there is no default solution or work around,
well I think if we can manually set the page/paper size (for custom page) through 'Server Properties' in 'Printers and Faxes' then there could be macro or program that will set it directly for the page height send through my program,
may be this will be dirty work around but I think or get any other solution sadly...
well if we can create a custom form of certain or change its page size manually there may be possibility it can be done through program, that's just idea I came with, but doesn't know how...
Renegade:
Does this help?
http://msdn.microsoft.com/en-us/library/system.drawing.printing.pagesettings.papersize.aspx
stophereareyou:
Thanks Renegade,
I tried it,
for reporting I'm use either Crystal Report or MS Report and they don't support/have functionality for directly or through code changing page size
I can only able to select the page sizes defined in printer settings of printer for them,
I have created custom (and can change)page size in printer settings manually but I want to change that page size dynamically or through code or some script...
can't we automate or code this...
Navigation
[0] Message Index
[#] Next page
Go to full version