May 09, 2024, 11:53:32 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Printer Setup Dialog

Started by Brian, November 16, 2010, 05:29:09 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Brian

Hi,

I notice in the EBA File menu, you can select Print and also Print Setup

How do we do the Print Setup dialog in our own EB programs?

Cheers,

Brian


ZeroDog

Use the PrintDlg API function in the comdlg32.dll

QuoteDECLARE "comdlg32.dll" Alias "PrintDlgA",PrintDlg(lppd:PRINTDLG),INT

lppd - Pointer to a PRINTDLG structure that contains information used to initialize the dialog box. When PrintDlg returns, this structure contains information about the userââ,¬â,,¢s selections.

QuoteTYPE PRINTDLG
   DEF lStructSize:INT
   DEF hwndOwner:INT
   DEF hDevMode:INT
   DEF hDevNames:INT
   DEF hdc:INT
   DEF flags:INT
   DEF nFromPage:WORD
   DEF nToPage:WORD
   DEF nMinPage:WORD
   DEF nMaxPage:WORD
   DEF nCopies:WORD
   DEF hInstance:INT
   DEF lCustData:INT
   DEF lpfnPrintHook:INT
   DEF lpfnSetupHook:INT
   DEF lpPrintTemplateName:STRING
   DEF lpSetupTemplateName:STRING
   DEF hPrintTemplate:INT
   DEF hSetupTemplate:INT
ENDTYPE

Brian

Thanks for the info - I figured it was something like that, but nice
to see a bit of code to get me going

Brian

talun

Brian,
maybe the E\Iwbasic PRTDIALOG function can work for you

bye

Sergio