If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Corel Paradox > Select print or fax

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-29-04, 10:53
follikel follikel is offline
Registered User
 
Join Date: Mar 2004
Posts: 2
Question 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
Reply With Quote
  #2 (permalink)  
Old 03-30-04, 14:49
lmckelvy lmckelvy is offline
Registered User
 
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 14:56.
Reply With Quote
  #3 (permalink)  
Old 04-01-04, 09:05
follikel follikel is offline
Registered User
 
Join Date: Mar 2004
Posts: 2
Quote:
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?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On