[Harbour] Re: Is there any example to print a DBF with QT?

2009-12-14 Thread Guillermo Varona Silupú

Thank you very much

BestRegards
GVS



Pritpal Bedi escribió:

Hi
Guillermo Varona wrote:

Anyway, I'll keep watching this powerful contribution.


Yes sure. Examine HBIDE.PRG :

/*--*/
//   Printing
/*--*/

METHOD HbIde:printPreview()
   LOCAL qDlg

   qDlg := QPrintPreviewDialog():new( QT_PTROFXBP( ::oDlg ) )
   qDlg:setWindowTitle( "Harbour-QT Preview Dialog" )
   Qt_Connect_Signal( qDlg:pPtr, "paintRequested(QPrinter)", {|o,p|
::paintRequested( p,o ) } )
   qDlg:exec()
   Qt_DisConnect_Signal( qDlg:pPtr, "paintRequested(QPrinter)" )

   RETURN self

/*--*/

METHOD HbIde:paintRequested( pPrinter )
   LOCAL qPrinter

   qPrinter := QPrinter():configure( pPrinter )

   ::qCurEdit:print( QT_PTROF( qPrinter ) )

   RETURN Self

/*--*/




Pritpal thank you very much for this great contribution



You are welcome.

Regards
Pritpal Bedi


___
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour


[Harbour] Re: Is there any example to print a DBF with QT?

2009-12-14 Thread Guillermo Varona Silupú

Pritpal Bedi escribió:

Hi
Guillermo Varona wrote:

Is there any example to print a DBF with QT?


What you mean by "print with QT'?
You can peep into HBXBP demos XbpBrowse() implementation.
Everything is under tour control, just hook in printing mechanism.



[SPA]
Quizás no me explique bien, me referia a poder utilizar los dialogos de 
impresión que utiliza QT, sobre todo la vista previa que tiene varias 
herramientas, incluida la impresión.
Estuve mirando el demo, pero esta bastante complejo para mi nivel de 
conocimiento, habrá algo mas sencillo de entender?

De todas formas, voy a seguir mirando esta poderosa contribución.
Muchas gracias Pritpal por este gran aporte

[ENG] by Google
Maybe I am not explaining well, I meant to use the print dialogues using 
QT, especially the preview that has several tools, including printing.
I watched the demo, but this rather complex for my level of knowledge, 
there will be something easier to understand?

Anyway, I'll keep watching this powerful contribution.
Pritpal thank you very much for this great contribution

BestRegards.
GVS

___
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour