Anybody out there solved the problem of manipulating the printer setup dialog box with xbasic, action scripting or another way in A5V3?? Here's the problem:
Have several forms where some are used to print only the current record while others are used to print several hundred pages of records, one form to a page. On forms where only the current record is to be printed I have a button to print such and do not have the form properties include bringing up the printer setup dialog box as it is really just another step to do. On forms involving multiple pages (records) the form properties do have the printer dialog box come up so each print run can be matched with printer paper capacity etc. IE:May have to print 400 records but want to do 1-200 and then 201-400 as the paper capacity is only 200 sheets.
The problem comes when I have just finished the 201-400 run and return to printing a another form calling for only the present record is to be printed. The print range in the printer setup does not reset to "all" and is still effectively set at "pages 201 to 400". Consequently, it won't print the current record when called for. Of course if the form properties are set again so the printer dialog box comes up on printing, the range can be changed and it will print the current record. The ratio of printing the current record to the multiple records printing is probably 50 or 100 to 1 so having the dialog box up every time is a pain.
The ideal would be to reset the print range from "X toY pages" to "All" every time the current record printing forms are opened with a script. I've searched the Xbasic ref manual and action scripting info high and low but no way to do this is apparent to me. Have I missed something or is there another way???????
Have several forms where some are used to print only the current record while others are used to print several hundred pages of records, one form to a page. On forms where only the current record is to be printed I have a button to print such and do not have the form properties include bringing up the printer setup dialog box as it is really just another step to do. On forms involving multiple pages (records) the form properties do have the printer dialog box come up so each print run can be matched with printer paper capacity etc. IE:May have to print 400 records but want to do 1-200 and then 201-400 as the paper capacity is only 200 sheets.
The problem comes when I have just finished the 201-400 run and return to printing a another form calling for only the present record is to be printed. The print range in the printer setup does not reset to "all" and is still effectively set at "pages 201 to 400". Consequently, it won't print the current record when called for. Of course if the form properties are set again so the printer dialog box comes up on printing, the range can be changed and it will print the current record. The ratio of printing the current record to the multiple records printing is probably 50 or 100 to 1 so having the dialog box up every time is a pain.
The ideal would be to reset the print range from "X toY pages" to "All" every time the current record printing forms are opened with a script. I've searched the Xbasic ref manual and action scripting info high and low but no way to do this is apparent to me. Have I missed something or is there another way???????
Comment