P
Paul S.
I'm trying to write directly to the printer object from
VB6.olb in an access form vba procedure. I have been able
to add the reference, and it gives me visibility to all of
the printer procedures (currentx, currenty, etc.) but I
can't figure out how to set the object block. If I try
using Dim Printer1 as VB.Printer, any reference to
Printer1 returns an error Block not set. Any attempts to
set the block (Set Printer1=Application.Printer) gives me
an error that the variable types are not consistent.
Has anybody tried this, or can suggest a vba method that
can paint directly on the printer object?
VB6.olb in an access form vba procedure. I have been able
to add the reference, and it gives me visibility to all of
the printer procedures (currentx, currenty, etc.) but I
can't figure out how to set the object block. If I try
using Dim Printer1 as VB.Printer, any reference to
Printer1 returns an error Block not set. Any attempts to
set the block (Set Printer1=Application.Printer) gives me
an error that the variable types are not consistent.
Has anybody tried this, or can suggest a vba method that
can paint directly on the printer object?