Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2004
    Posts
    2

    Question Unanswered: Select print or fax

    I would like to fax a report from paradox with winfax pro. But it always uses the printer settings in Paradox and not from Windows. Can anybody help me that I get the print dialogue box or open winfax automatically if I use print button in Paradox, thank you!? This is the code:

    method pushButton(var eventInfo Event)
    var
    qs String
    onderzoeknr String
    repI ReportPrintInfo
    Rep Report
    endVar

    onderzoeknr = ""

    if vanverr.size() > 0 or totverr.size() > 0 then
    if (vanverr.size() > 0) then
    onderzoeknr = ">= " + vanverr
    endif
    if (totverr.size() > 0) then
    if (onderzoeknr.size() > 0) then
    onderzoeknr = onderzoeknr + ", "
    endif
    onderzoeknr = onderzoeknr + "<= " + totverr
    endif
    endif
    if (onderzoeknr.size() > 0) then
    onderzoeknr = ", " + onderzoeknr
    endif

    ; first create

    executeQBEFile("geslverr.qbe", "geslvlst.db")

    qs = "Query\n\n" +
    "geslvlst.db | verrichtingnr | \n" +
    " | _verr " + onderzoeknr + " | \n\n" +
    "zoektest.db | onderzoeknr | testgroepnr | testnr | datum | uitslag | getest | \n" +
    " | check _verr | check | check | check | check | check only 1 | \n\n" +
    "EndQuery"

    RepI.querystring = qs
    RepI.name = "testrslt" ; naam van report

    if (not Rep.print(RepI)) then
    errorshow("report error", "verricht")
    endif

    endmethod

  2. #2
    Join Date
    Oct 2003
    Posts
    107
    You'll need to use the OPEN method for the report variable, followed by a call to WAIT (instead of PRINT). Check out the objectPal help files under Open->Report and look at syntax 3 to include your querystring.

    Change your reportPrintInfo variable to a reportOpenInfo type. Then do this:

    if (not Rep.open(RepI)) then
    errorshow("report error", "verricht")
    return
    endif

    Rep.wait()

    (I believe I got that right, if I understand the help file correctly)
    Last edited by lmckelvy; 03-30-04 at 15:56.

  3. #3
    Join Date
    Mar 2004
    Posts
    2
    Originally posted by lmckelvy
    You'll need to use the OPEN method for the report variable, followed by a call to WAIT (instead of PRINT). Check out the objectPal help files under Open->Report and look at syntax 3 to include your querystring.

    Change your reportPrintInfo variable to a reportOpenInfo type. Then do this:

    if (not Rep.open(RepI)) then
    errorshow("report error", "verricht")
    return
    endif

    Rep.wait()

    (I believe I got that right, if I understand the help file correctly)
    Thank you for your reply. It is not quite what i want because in the background i see now the report that i want to print or fax. Is there a way to get just only the print dialogue or to fax the report directly?
    I am using paradox 4.5 for windows. Can I upgrade to paradox 9 or higher?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •