Preview / Viewer Object

Started by Jeffrey Ferreira, April 06, 2023, 02:15:54 PM

Previous topic - Next topic

Jeffrey Ferreira

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

michaelgreer

Jeff,

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

Michael

Jeffrey Ferreira

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?

Stéphane Devouard

Hi Jeff

Is that what you're looking for ?

->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
Stéphane Devouard
Portfolio | Work

Jeffrey Ferreira

Hi Stéphane,

Yes that is it.
Thank you !

jeff