FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour PDFCreator en modo "silencioso"
Posts: 174
Joined: Wed Nov 29, 2017 11:42 AM
PDFCreator en modo "silencioso"
Posted: Wed Feb 14, 2018 05:41 PM

Estoy tratando de hacer andar PDFCreator en modo que no sea visible e imposible de interactuar. Recuerdo que antes en versiones hasta la 0.9.9 se podia mediante un script, parametrizar TODO, nombre documento, carpeta destino y que no se mostrara la ventana de PDFCreator.

Ahora soy incapaz de ponerlo a andar de esta forma.

He mirado por el foro, pero los mensajes hacen menci贸n a versiones de PDFCreator muy antiguas, y con todo y con eso, miro de utilizarlo via ActiveX, pero no me encuentra el ActiveX,

TRY
oPC := CreateObject( "PDFCreator.clsPDFCreator" )//"Pdfcreator.Application" )
CATCH
MsgStop("No Pdf Creator.", "No se puede seguir")
END

y eso que tengo la impresora bien instalada y funcionando...

Alguna ayudita???

Gracias.

Un Saludo,

Xevi.



Aprendiz de la vida!!!
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: PDFCreator en modo "silencioso"
Posted: Wed Feb 14, 2018 06:21 PM
Intenta asi

Code (fw): Select all Collapse
? oPC := CreateObject( "PDFCreator.PDFCreatorObj" )
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 174
Joined: Wed Nov 29, 2017 11:42 AM
Re: PDFCreator en modo "silencioso"
Posted: Wed Feb 14, 2018 06:39 PM
Crist贸bal.

As铆 茅s!!!

No me da error y me encuentra el ActiveX.
Pero...

Code (fw): Select all Collapse
TRY
oPDF := CreateObject( "PDFCreator.PDFCreatorObj" )
CATCH
MsgStop("No Pdf Creator.", "No se puede seguir")
END
XBrowse( oPDF )


Me muestra 3 datos...
cClassname | PDFCreator.PDFCreatorObj
hObj | 0xA5FACC
oLevalue | <protected>

No obtengo ning煤n dato que necesitaria para poder "ocultar" la aplicaci贸n, o la ruta destino, o el nombre fichero...

No se.

Gracias por tu tiempo.
Un Saludo,

Xevi.



Aprendiz de la vida!!!
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: PDFCreator en modo &quot;silencioso&quot;
Posted: Wed Feb 14, 2018 06:47 PM

Usa el ejemplo de samples olebrow.prg y busca ese activeX, pulsa doble click a ver qu茅 te sale

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 174
Joined: Wed Nov 29, 2017 11:42 AM
Re: PDFCreator en modo &quot;silencioso&quot;
Posted: Wed Feb 14, 2018 07:07 PM
Dos Objetos PDFCreator

PDFCreator.PDFCreatorObj...

STDCALL dispatch PROPERTYGET PTR GetPDFCreatorPrinters()
STDCALL dispatch PROPERTYGET VARIANT_BOOL IsInstanceRunning()
STDCALL dispatch FUNC void PrintFile( [in] BSTR )
STDCALL dispatch FUNC void AddFileToQueue( [in] BSTR )
STDCALL dispatch FUNC void PrintFileSwitchingPrinters( [in] BSTR, [in] VARIANT_BOOL )



PDFCreator.JobQueue...

STDCALL dispatch FUNC void Initialize()
STDCALL dispatch FUNC VARIANT_BOOL WaitForJob( [in] int )
STDCALL dispatch FUNC VARIANT_BOOL WaitForJobs( [in] int, [in] int )
STDCALL dispatch PROPERTYGET int Count()
STDCALL dispatch PROPERTYGET PTR NextJob()
STDCALL dispatch FUNC PTR GetJobByIndex( [in] int )
STDCALL dispatch FUNC void MergeJobs( [in] PTR, [in] PTR )
STDCALL dispatch FUNC void MergeAllJobs()
STDCALL dispatch FUNC void Clear()
STDCALL dispatch FUNC void DeleteJob( [in] int )
STDCALL dispatch FUNC void ReleaseCom()


Y un tercer Objeto...
PDFCreator.Shell
Que me muestra el mensaje "Can't create the object"
Un Saludo,

Xevi.



Aprendiz de la vida!!!
Posts: 174
Joined: Wed Nov 29, 2017 11:42 AM
Re: PDFCreator en modo &quot;silencioso&quot;
Posted: Wed Feb 14, 2018 07:23 PM
Lo 煤nico que he podido hacer rular...

Code (fw): Select all Collapse
TRY
oPDF := CreateObject( "PDFCreator.PDFCreatorObj" )
CATCH
MsgStop("No Pdf Creator.", "No se puede seguir")
END
xbrowse( oPDF:IsInstanceRunning() )


Saber si est谩 o no "corriendo" la aplicaci贸n PDFCreator !!!

Nada m谩s.
Un Saludo,

Xevi.



Aprendiz de la vida!!!
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: PDFCreator en modo &quot;silencioso&quot;
Posted: Thu Feb 15, 2018 12:06 PM

Si esos son los m茅todos que te muestra, es lo que ofrecen ahora en su activex. Poco m谩s se puede hacer utilizando el activex

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces

Continue the discussion