FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour PRINT oPrn NAME cTitle PREVIEW
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM

PRINT oPrn NAME cTitle PREVIEW

Posted: Mon Dec 11, 2023 03:18 PM

Hi,

when I put the PREVIEW CLAUSE I see a preview window.

I want to know if is it possibile to personalize the button bar.

For example delete some buttons such as pdf, mail export to word and so on and personalize other.

I want to know if is it possible to create for instance a button that if clicked the print goes to pdfcreator directly

without the possibility to choice a printer from list.

That would be great that if i click on "pdfcreator" button before begins print I can set folder and name of pdf file to create

using using the usual pdfcreator instruction set

oPdf = CREATEOBJECT( "PDFCreator.JobQueue" )

oPdf:Initialize()

Have I to need to edit rpreview.prg to obtain this goals?

Marco Boschi
info@marcoboschi.it
Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM

Re: PRINT oPrn NAME cTitle PREVIEW

Posted: Mon Dec 11, 2023 04:18 PM
Look,
Code (fw): Select all Collapse
PRV2PDF.PRG
Maybe...

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: PRINT oPrn NAME cTitle PREVIEW

Posted: Mon Dec 11, 2023 05:10 PM
Code (fw): Select all Collapse
TPreview():bButtonbar := { |oPrev,oWnd| MyButtonBar( oPrev, oWnd )
and
Code (fw): Select all Collapse
function MyButtonBar( oPrev, oWnd )
  local oBar
  DEFINE BUTTONBAR oBar OF oWnd <otherClauses>
  DEFINE BUTTON ...
  // ...
  
  oPrev:oBar := oBar

return nil
This topic was recently discussed in another thread in these forums.
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion