PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Preview / Viewer Object  (Read 1294 times)

Jeffrey Ferreira

  • Diamond Member
  • *****
  • Posts: 185
  • I must have taken a wrong turn at Albuquerque.
    • View Profile
Preview / Viewer Object
« 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

michaelgreer

  • Diamond Member
  • *****
  • Posts: 129
    • View Profile
Re: Preview / Viewer Object
« Reply #1 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

Jeffrey Ferreira

  • Diamond Member
  • *****
  • Posts: 185
  • I must have taken a wrong turn at Albuquerque.
    • View Profile
Re: Preview / Viewer Object
« Reply #2 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?

Stéphane Devouard

  • Diamond Member
  • *****
  • Posts: 124
  • PxPlus guru with skills in PHP, JS, C#, Java
    • View Profile
    • Stéphane's Web Resume
Re: Preview / Viewer Object
« Reply #3 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
Stéphane Devouard
Portfolio | Work

Jeffrey Ferreira

  • Diamond Member
  • *****
  • Posts: 185
  • I must have taken a wrong turn at Albuquerque.
    • View Profile
Re: Preview / Viewer Object
« Reply #4 on: April 10, 2023, 08:39:13 AM »
Hi Stéphane,

Yes that is it.
Thank you !

jeff