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 > Pdox 11 Printer settings error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-02-05, 11:38
Nestor T Nestor T is offline
Registered User
 
Join Date: Dec 2005
Location: Mississippi Gulf Coast
Posts: 3
Pdox 11 Printer settings error

I'm testing Pdx 11.0.0411, in XP pro SP2, i have an app that sets the specified printer for Legal size printing. using printerGetoptions and printerSetOptions I see the code works but when i print the printer defaults to Letter. Does anyone know a work around for this? thanks
Reply With Quote
  #2 (permalink)  
Old 12-08-05, 08:18
Shores Shores is offline
Registered User
 
Join Date: Aug 2003
Location: Bologna - Italy
Posts: 209
What OPAL code do you use to set up the printer?
__________________
The only failure is not trying to do it.
Reply With Quote
  #3 (permalink)  
Old 12-20-05, 13:40
Nestor T Nestor T is offline
Registered User
 
Join Date: Dec 2005
Location: Mississippi Gulf Coast
Posts: 3
The following is the code, in summary, I used with NO success.

printerGetOptions(PtrInfo) -> PrtInfo dynarray[]anytype
PtrInfo.view() -> to view settings
PtrInfo ["PaperSize"] = prnLegal -> select paper size
PtrInfo.view() -> to verify changes

If printerSetOptions(PtrInfo) then
message("Printer Setup Complete")
; Open form, add data, print.(*)
Else
Errorshow()
Endif


(*) we have preprinted multipart forms, the data varies depending on the job.

I debugged my test program and the paper setting changed as I would expect them to. But when I actually printed the data, the printer paper size defaulted to 'Letter'

I have resolved to not fully automate the printing.

I gave up on coding it at all since that did not work.

Now the user will open Pdox, run form, then print it.
No object pal for printing is involved.

I have not been able to set a named setting that keeps the Letter paper size. HELP!
I tried manipulating the registry with no luck. If I can call a named setting or the techs, using the print menu "menuaction(menuFilePrint)" can select it, my problem would be solved.
Any help would be appreciated.
Thanks
Nestor
Reply With Quote
  #4 (permalink)  
Old 12-21-05, 19:30
Maroonotmoron Maroonotmoron is offline
Registered User
 
Join Date: Sep 2003
Location: Dallas
Posts: 182
Change the Order

Opening the form results in the form changing the print options to those saved with the form when it was created. So all your hard work goes for naught. Do this:

Open the Form;
Add the Data
If printerSetOptions(PtrInfo) then
Form.print()
Else
Errorshow()
Endif
Reply With Quote
  #5 (permalink)  
Old 12-22-05, 11:02
Nestor T Nestor T is offline
Registered User
 
Join Date: Dec 2005
Location: Mississippi Gulf Coast
Posts: 3
man, I thought your solution was simple enough,
it should work. I made the necessary mods and...
I uttered an explicitive...
it still defaulted to Letter size.

Thanks Maroonotmoron for you suggestion.
Have you got any others up your sleeve?
Reply With Quote
  #6 (permalink)  
Old 12-22-05, 18:14
Maroonotmoron Maroonotmoron is offline
Registered User
 
Join Date: Sep 2003
Location: Dallas
Posts: 182
Just a thought.

does your printer have more than one bin. If the default is not set to auto then even changing paper type could result in it pulling paper from a default bin. (perhaps the one holding letter size.) Check to see if one of the choices is bin and then modify that in print info to make sure it is pulling the correct paper size from the correct bin.
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