T
Tooth home mail
I was rewriting some modules of an old programme the other day, and thought
that I should use a more object orientated approach. So, instead of the DAO
based report, I produced a report object complete with all the property
let's that I needed, set it, populated it, all went well until I had to
print it. What I wanted was an invisible print, so:
with rpt
.visible = false
.printout
This unfortunately printed the form that was on the screen at the time. I
then wrote a rptForm method into the report object and used that:
with rpt
.visible = false
.rptForm --> ( docmd.PrintOut in rpt)
Similar result
It works properly if I make .visible = true , but there are the usual
sideffects of screen flashes and resizing. How do I make the rpt object
prit itself to the printer?
Thanks, Michael
that I should use a more object orientated approach. So, instead of the DAO
based report, I produced a report object complete with all the property
let's that I needed, set it, populated it, all went well until I had to
print it. What I wanted was an invisible print, so:
with rpt
.visible = false
.printout
This unfortunately printed the form that was on the screen at the time. I
then wrote a rptForm method into the report object and used that:
with rpt
.visible = false
.rptForm --> ( docmd.PrintOut in rpt)
Similar result
It works properly if I make .visible = true , but there are the usual
sideffects of screen flashes and resizing. How do I make the rpt object
prit itself to the printer?
Thanks, Michael