PRINT oPrn NAME cTitle PREVIEW

PRINT oPrn NAME cTitle PREVIEW

Postby MarcoBoschi » Mon Dec 11, 2023 3: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?
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: PRINT oPrn NAME cTitle PREVIEW

Postby karinha » Mon Dec 11, 2023 4:18 pm

Look,

Code: Select all  Expand view  RUN

PRV2PDF.PRG
 


Maybe...

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7831
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: PRINT oPrn NAME cTitle PREVIEW

Postby nageswaragunupudi » Mon Dec 11, 2023 5:10 pm

Code: Select all  Expand view  RUN
TPreview():bButtonbar := { |oPrev,oWnd| MyButtonBar( oPrev, oWnd )


and

Code: Select all  Expand view  RUN
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
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 85 guests