S
StrandElectric
Hi all
No-one has yet got back to me indicating how in vb.net I can address the
printer properly and print nicely formatted columns of information as I
could with vb6. Having made considerable headway with vb.net, and being
persuaded that it is a very flexible system with many options, I am sure it
must be possible (but possibly undocumented?). I do not want to print a
copy of the form on the screen. I want to print variables by name in the
horizontal position that I choose, preferably simply.
Like this pseudo code:
With Print to Printer
at tab1, MyVariableName
at tab20, MyVariableNet
at tab30, MyVariableGST
at tab40, MyVariableTotal
Linecount = Linecount +1
End With
If linecount >50 then
Lincount =0
NextPage
End If
(I've posted actual vb6 code earlier)
Also, it would be nice to access the printer dialogue box to check which of
my printers I wish to use (failing that I'd go for the default printer). I
definitely want to be able to code portrait or landscape according to the
(financial report) I want to print, like this psedo code at the start of
each report.
Like this pseudo code
Choose Printer.Orientation = Portrait
Any takers? Needing less than 10,000 lines of code please (only kidding
this last bit...)
No-one has yet got back to me indicating how in vb.net I can address the
printer properly and print nicely formatted columns of information as I
could with vb6. Having made considerable headway with vb.net, and being
persuaded that it is a very flexible system with many options, I am sure it
must be possible (but possibly undocumented?). I do not want to print a
copy of the form on the screen. I want to print variables by name in the
horizontal position that I choose, preferably simply.
Like this pseudo code:
With Print to Printer
at tab1, MyVariableName
at tab20, MyVariableNet
at tab30, MyVariableGST
at tab40, MyVariableTotal
Linecount = Linecount +1
End With
If linecount >50 then
Lincount =0
NextPage
End If
(I've posted actual vb6 code earlier)
Also, it would be nice to access the printer dialogue box to check which of
my printers I wish to use (failing that I'd go for the default printer). I
definitely want to be able to code portrait or landscape according to the
(financial report) I want to print, like this psedo code at the start of
each report.
Like this pseudo code
Choose Printer.Orientation = Portrait
Any takers? Needing less than 10,000 lines of code please (only kidding
this last bit...)