|
-
Oct 6th, 2000, 03:35 PM
#1
Thread Starter
Junior Member
Hi,
I am using MS Access97. I can use the printdlg api to open up the Print dialog but i am unable to retrieve what printer the user selected & then get my report to print to that printer (probably using prtDevNames & prtDevMode properties). Here is the code i have that opens the print dialog but i am kinda a lost on what to do after the dialog has been open....any suggestions would be greatly appreciated....
Also how can i set the prtdevnames & prtdevmode properties back to the original way
CODE
----
Dim lngretVal As Long
Dim udtPrDlg As PrintDlg
With udtPrDlg
.lStructSize = Len(udtPrDlg)
.hwndOwner = frm.Hwnd
'set other struct members here
End With
lngretVal = PrintDlg(udtPrDlg)
DoCmd.OpenReport "tickets", acViewNormal, "ticketqry"
' The above line sends the report to the printer, but the default printer & not the one selected by the user.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|