I just loaded paradox 8 on computer running XP pro
I use an HP2200dn Plc6 printer (duplex printer)
I loaded the appropriate xp drivers too.
the following code works very well in win 98 and win Me
It allows me to choose single or two sided printing
XP does not override the printer's default setup.
any suggestions??
if tc.Duplex=true then
recMyOptions.duplex=prnVertical else
recMyOptions.duplex=prnSimplex
endif
thanks
Jim Sisco
printerSetOptions(recMyOptions)
if not r.print(rpi) then errorshow()endif
"Jim Sisco" <jim....@sympatico.ca> wrote in message
news:41531e8e$1_2@cnews...
1) What happens if you try this:
errorTraponwarnings(Yes)
try
printerSetoptions(recMyoptions)
onFail
errorshow()
endtry
errortraponwarnings(no)
2) What happens if you open the report before setting the printeroptions?
3) What happens if you print the opened report instead of a new instance
of the report ( r.print(rpi) is a new instance )?
--
Bertil Isberg
CTECH
FAQ newsgroup: corel.wpoffice.paradox-faq
Paradox Buglist: http://w1.826.comhem.se/~u82608896/
remove spamfilter (reversed) to reply
I tried all 3 and paradox is still failed to set the printer options. There
is no error warning.
Jim
"Bertil Isberg" <bertil...@retlifmapsSCB.se> wrote in message
news:4153cb8a_3@cnews...
And what happens if you first use printerGetOptions()?
My idea was that you should look at the settings retrieved by
printerGetOptions() before printerSetOptions() and after.
Bertil,
following is my before and after code
the printer options do not change, they remain the same
; Get the current printer settings.
printerGetOptions(recUserOptions)
if recUserOptions.Duplex = prnVertical then
view("2 sided")
recMyOptions.Duplex=prnSimplex
else view("single sided")
endif
; Get the current printer settings.
printerGetOptions(recUserOptions)
if recUserOptions.Duplex = prnVertical then
view("2 sided")
else
view("single sided")
endif
"Bertil Isberg" <bertil...@retlifmapsSCB.se> wrote in message
news:41542979_1@cnews...
I would prefer to look at the exact values
view(recUserOptions.Duplex)
And then close Paradox. Change it to doubled sided on the printer and
relaunch Paradox and retrieve the value once again. Then compare the actual
values.
--
Bertil Isberg - CTECH
Paradox buglist:
online: http://w1.826.comhem.se/~u82608896/
FAQ newsgroup: corel.wpoffice.paradox-faq
the printers option was set to print both sides
recUserOptions.Duplex returned a value of 2
before and after
I closed paradox and set the printer options
to print single sided and then launched paradox
recUserOptions.Duplex returned a value of 1
before and after
"Bertil Isberg" <bertil.isberg@NOcomhemSPAMdotse> wrote in message
news:41543a5a$1_1@cnews...
I closed paradox and set the printer options
to print single sided and then launched paradox
recUserOptions.Duplex returned a value of 1
before and after
>>
And what happened when you printed?
When I print, the output matches the printer's options.
If I set the printer up to print both sides and then
launch Paradox, it prints both sides regardless of what I do in paradox with
objectpal. If I set the printer up to print one side and then launch the
printer it will print single sided no matter what I do inside of paradox
with objectpal. The interesting thing is that other options do work. I
have no problem controlling the page to start and page to end on.
I can successfully change the printer options interactively on the print
menu dialogue, but I am having no luck with objectpal.
I also tested my other computer which is running ME and it still changes the
printer's options. So I guess it is an XP pro issue.
thanks,
Jim
"Bertil Isberg" <bertil.isberg@NOcomhemSPAMdotse> wrote in message
news:41545f3a_1@cnews...
I don't have XP, so I cannot test this. And I don't have P8.
"Bertil Isberg" <bertil.isberg@NOcomhemSPAMdotse> wrote in message
news:41546c63_1@cnews...