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.
Printable View
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.
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