Click to See Complete Forum and Search --> : Print Setup


rro
April 28th, 2001, 05:34 PM
I want to insert a page setup(like VB page setup) in my VB project.
Is there any way to do that(like API or other one)?
I tried to write one by myself but I found some problems to get paper options(name of paper size) from windows.

shree
April 28th, 2001, 08:26 PM
You can use the Printer common dialog with the flag set to cdlPDPrintSetup.


private sub command1_click()
on error goto errhndlr
commondialog1.cancelerror = true
commondialog1.flags = cdlPDPrintSetup
commondialog1.showprinter
exit sub
errhndlr:
end sub