PxPlus User Forum

Main Board => Discussions => Programming => Topic started by: Jeffrey Ferreira on April 06, 2023, 02:15:54 PM

Title: Preview / Viewer Object
Post by: Jeffrey Ferreira on April 06, 2023, 02:15:54 PM
Hi List,

A long time ago Gord Davey helped me invoke a viewer object where i could interact with the viewer. I have lost the code and I cant remember how to do it. Can anyone help me with that?

thanks

jeff
Title: Re: Preview / Viewer Object
Post by: michaelgreer on April 06, 2023, 04:53:40 PM
Jeff,

Create a link file using /dev/null on *nix or nul on windows.  Use the driver viewer provided with PxPlus.

Michael
Title: Re: Preview / Viewer Object
Post by: Jeffrey Ferreira on April 07, 2023, 07:19:12 AM
Hi Mike,
I'm sorry I should have given an example.
He gave me the code to do something like this:

def object viewer_obj,"Viewer"

and then i could automate some of the functions like saving it.
is this still possible?
Title: Re: Preview / Viewer Object
Post by: Stéphane Devouard on April 08, 2023, 03:10:55 AM
Hi Jeff

Is that what you're looking for ?
Code: [Select]
->preview=new("*viewer/preview")
->? preview'*
AlwaysUseDefaultOpenPath,Banner,Bottom,Caption$,Close(),Collate,Color,Colour,Col
umn,Columns,Copies,DPIPrinter,DPIScreen,DefaultFixedFont$,DefaultFixedFontSize,D
efaultOpenPath$,DefaultOrientation,DefaultOrientation$,DefaultPaperSize,DefaultS
aveAsPath$,Delete(),DisableBanner,DisableDelete,DisablePrint,DisableSaveAs,Disab
leSearch,DisableWatermarks,Event(),FileName$,Find(),FindNext(),FindPrevious(),Fi
rstPage(),GotoPage(),HelpContents$,HelpFile$,HelpIndex$,Icon$,Init(),Language$,L
astPage(),Left,LookAndFeel,MinimumColumns,MinimumRows,NextPage(),Open(),OutputEv
enNumberOfPages,Page,PageGutterHorizontal,PageGutterVertical,Pages,PaginationAt,
PreviousPage(),Print(),Printer$,PrinterDescription$,Process(),Quit(),Range$,RePa
int(),Report,Right,Row,Rows,SaveAs(),SaveAsPDF(),ScaleToFit,ScrollDown(),ScrollL
eft(),ScrollRight(),ScrollUp(),SetCallBack(),SetWindowStateOnCreate,SetWindowSta
teOnFirstPage,SetWindowStateOnSpoolComplete,SetWindowStateOnSpoolStart,Software$
,SuppressAllBlankPages,SuppressBannerInfo,SuppressFirstBlankPage,SuppressPrinter
Selection,SuppressSplashScreen,SuppressStatusBar,SuppressToolBar,SuppressToolTip
s,SuppressWaterMarks,ThemeName$,Top,UsePrinter$,Version$,View,View(),Visible,Wat
erMark,WaterMarkPages,Zoom,Zoom(),ZoomIn(),ZoomOut(),_revision$,

Regards
Title: Re: Preview / Viewer Object
Post by: Jeffrey Ferreira on April 10, 2023, 08:39:13 AM
Hi Stéphane,

Yes that is it.
Thank you !

jeff