HMG Tutorials & Tips

Exclusive forum for HMG, a Free / Open Source xBase WIN32/64 Bits / GUI Development System
  1. Thanks Jimmy & Jayadev,

    That was the solution I searched for!

    Serge

    Statistics: Posted by serge_girard — Tue Oct 13, 2020 2:05 pm


  2. Hi,

    Please add oExcel:Quit() as the last line.

    Warm regards,

    Jayadev

    Statistics: Posted by jayadevu — Tue Oct 13, 2020 11:59 am


  3. Hi Jimmy,
    Thx, I will give it a try!
    Serge

    Statistics: Posted by serge_girard — Tue Oct 13, 2020 6:37 am


  4. Did you place in your code all pairs:
    start printdoc
    start printpage
    end printpage
    end printdoc
    ?
    Empty pages occur when are not finished by end printpage

    Statistics: Posted by mol — Tue Oct 13, 2020 6:06 am


  5. When it is running EXCEL starts and shows my sheet. Then I close BUT taskmanagers shows EXCEL still as running...!
    How to avoid this ?
    i do this under Xbase++

    CODE:

                oExcel:application:workbooks( 1 ) :saveas( zPath + "JOBKDOPL.XLS" )            // Quit Excel            oExcel:Quit()            // destroy the reference            oExcel:destroy()            IF ComLastError() > 0               MSGBOX( "Error: " + STR( ComLastError() ) + CHR( 13 ) + CHR( 10 ) + "Description:" + ComLastMessage() )            ENDIF
    under harbour i found no Destroy() so just try to use NIL

    Statistics: Posted by AUGE_OHR — Mon Oct 12, 2020 8:45 pm