Issue 1.
I'm currently writing an app that requires several different label sizes,
although in most cases only one size will be used. I want my app to tell
the printer driver what size of label it should expect. I've tried...
Dim prndoc As System.Drawing.Printing.PrintDocument = New
System.Drawing.Printing.PrintDocument
prndoc.PrinterSettings.PrinterName = prn
prndoc.PrinterSettings.DefaultPageSettings.Landsca pe = False
Dim ps As New PaperSize("Custom", Width, Height)
prndoc.PrinterSettings.DefaultPageSettings.PaperSi ze = ps
But this doesn't work, the label printer driver ignores the paper size, so
the user has to manually change the size in the driver everytime they change
the size of label.
Any ideas?
Issue 2.
Part of the application needs to send direct printer code to a printer on a
local port. In VB6 there was an API you could use to 'pass' data through a
printer driver without it trying to format any of the data. Does anyone
know how to achieve the same in Net? I don't want to start writing
complete com/lpt classes to get the data sent, I've tried this is the past
and it's very messy!
Cheers.
Tull.