Printing in dot Net

P

Pohihihi

Hello NG.

I am using System.Drawing.Printing NS to print few label style printouts. I
figured out how the basics goes in that namespace but there are still few
things that is holding me up from completing my work. Basic problem is that
when I select to print many copies or collate printout then nothing
happence. It prints the first page and stops. Also I get different
information regarding printer's capacity (please see below). Example it says
color is not supported but in default settings it says color is true (or
maybe I am understanding it wrong). Also how I can give a general solution
so that users can print as many copies of same label on any kind of selected
labels (e.g. Avery type). It seems like the form shown via that NS is just a
simple form and rest we have to take care (e.g. printing many copies or
collate pages).

For priting many copies I can read number of copies requested and send that
many print requests but that is not how other applications do. I notices
that (MS Word) sends 1 request for printing to the printer (including as
many number of copies and any other settings). In my case I see n numbers of
requested copies in printer queue which I want to avoid. Also, what I want
to print is created dynamically and is not saved in one place in any file or
DB. Other small problem is that when I set true to show network printers I
do not see any button that will show network printer. I have seen that
button on other application. Addition to all these questions is there a good
book that goes deep in this topic as I have read almost all the MSDN pages
on this topic but those pages do not go deep in deep implementation issues
rather intro on functions or classes.

Thanks for the help.
Po




CanDuplex = False
Collate = True
Copies = 1
PrinterName = Adobe PDF
IsDefaultPrinter = False
IsPlotter = False
LandscapeAngle = 90
MaximumCopies = 1
SupportsColor = False
Duplex = Simplex
FromPage = 0
MaximumPage = 9999
MinimumPage = 0
PrintRange = AllPages
PrintToFile = False
ToPage = 0

** Default settings **
DefaultPageSettings = [PageSettings: Color=True, Landscape=False,
Margins=[Margins Left=100 Right=100 Top=100 Bottom=100],
PaperSize=[PaperSize Letter Kind=Letter Height=1100 Width=850],
PaperSource=[PaperSource Automatically Select Kind=FormSource],
PrinterResolution=[PrinterResolution X=1200 Y=1200]]
 
B

Bruce Wood

You have a lot of questions wrapped up in one post.

I would suggest that you post some of the printing code that have
working so far as a starting point. Maybe 100 lines of code or so that
we can start to see how you're solving the problem and can help you
improve your program.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top