I see, No Subforms, Inferior Reports, Etc...A lot of downsides already!
OK, I'll fess up. The big reason why I was thinking of doing this is
because of that Print Dialog box that pops up everytime I print. I tried
the hide method but it doesn't hide it quick enough,,,Anyway of changing
it to what I want or Customizing it, both looks and content?
Thanks
DS
It is not clear what you mean here, but you might start a new post.
Are you saying you want to send the report you are viewing to the printer
without printer dialog prompt?
If you got a custom menu bar for your report like I do, then ALL OF my
reports have an option to print (with no printer dialog), and then a option
print, and the printer dialog appears.
Here is a screen shot of the menu bar.
http://www.members.shaw.ca/AlbertKallal/test/bu.htm
So, if I click on the print to default printer...no dialog appears.
The code used for these menu bars options is as follows:
The select object command is needed to fix a "focus" bug if you have a form
with a timer function.
For the code that pops up the printer dialog (so the user can change
printers etc).
You can use:
On Error Resume Next
DoCmd.SelectObject acReport, Screen.ActiveReport.Name
DoCmd.RunCommand acCmdPrint
The select object command is needed to fix a "focus" bug if you have a form
with a timer function.
The code to print right to the printer while in preview mode can be:
On Error Resume Next
Dim strReportName as string
strREportName = Screen.ActiveReport.Name
DoCmd.SelectObject acReport, strReportName
DoCmd.PrintOut acPrintAll
So, the 2nd code example does NOT prompt with a printer dialog..
I used the above for years and years. So, just have your menu buttion run
either of the above code routines.....