Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

print problem xp pro

0 views
Skip to first unread message

Jim Sisco

unread,
Sep 23, 2004, 3:31:24 PM9/23/04
to corel.developer.paradox

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

Jim Sisco

unread,
Sep 23, 2004, 11:53:25 PM9/23/04
to corel.developer.paradox

the rest of the code

printerSetOptions(recMyOptions)
if not r.print(rpi) then errorshow()endif

"Jim Sisco" <jim....@sympatico.ca> wrote in message
news:41531e8e$1_2@cnews...

Bertil Isberg

unread,
Sep 24, 2004, 3:49:11 AM9/24/04
to corel.developer.paradox

Jim

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


Jim Sisco

unread,
Sep 24, 2004, 8:16:56 AM9/24/04
to corel.developer.paradox

Thanks for your suggestions Bertil,

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...

Bertil Isberg

unread,
Sep 24, 2004, 9:28:12 AM9/24/04
to corel.developer.paradox

Jim

And what happens if you first use printerGetOptions()?

Bertil Isberg

unread,
Sep 24, 2004, 10:29:59 AM9/24/04
to corel.developer.paradox

Jim

My idea was that you should look at the settings retrieved by
printerGetOptions() before printerSetOptions() and after.

Jim Sisco

unread,
Sep 24, 2004, 10:58:21 AM9/24/04
to corel.developer.paradox

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...

Bertil Isberg

unread,
Sep 24, 2004, 11:41:12 AM9/24/04
to corel.developer.paradox

Jim

<<
if recUserOptions.Duplex = prnVertical then
view("2 sided")
recMyOptions.Duplex=prnSimplex
else view("single sided")
>>

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

Jim Sisco

unread,
Sep 24, 2004, 11:53:50 AM9/24/04
to corel.developer.paradox

Bertil,

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...

Bertil Isberg

unread,
Sep 24, 2004, 2:18:32 PM9/24/04
to corel.developer.paradox

<<
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
>>

And what happened when you printed?

Jim Sisco

unread,
Sep 24, 2004, 2:40:52 PM9/24/04
to corel.developer.paradox

Bertil,

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...

Bertil Isberg

unread,
Sep 24, 2004, 3:14:41 PM9/24/04
to corel.developer.paradox

<<
So I guess it is an XP pro issue.
>>

I don't have XP, so I cannot test this. And I don't have P8.

Jim Sisco

unread,
Sep 24, 2004, 3:35:23 PM9/24/04
to corel.developer.paradox

Bertil
thanks for trying
Jim


"Bertil Isberg" <bertil.isberg@NOcomhemSPAMdotse> wrote in message

news:41546c63_1@cnews...

0 new messages