I.T. Discussion Community!
-Collapse +Expand
Paradox
Search Paradox Group:

Advanced
-Collapse +Expand Paradox To/From
To/FromCODEGuides
-Collapse +Expand Paradox Store
PRESTWOODSTORE

Prestwood eMagazine

November Edition
Subscribe now! It's Free!
Enter your email:

   ► MB LobbyCorel Paradox / ObjectPAL Coding BoardParadox Forms Topic   Print This     

printerSetCurrent is hanging

printerSetCurrent is hanging in Paradox Forms topic (part of our Corel Paradox / ObjectPAL Coding group).

Quick Search: printerSetCurrent   hanging   printerSetCurrent hanging  
GaryG
Arrow Box Company
-- USA

Our entire user base is running 11.0.0.676 on Windows 10. I believe this is the latest version of Paradox.

Today, there is 1 user whose Paradox app is hanging when executing  the command printerSetCurrent. Rebooting does not correct the issue.

code snippet:

stPrnName = "Win2PDF"

if printerSetCurrent(stPrnInfo) then ; THIS LINE HANGS
     setRegistryValue("Software\\Dane Prairie Systems\\Win2PDF", "PDFFileName", pathstring , regKeyCurrentUser)
     setRegistryValue("Software\\Dane Prairie Systems\\Win2PDF", "file options", 2, regKeyCurrentUser)
     setRegistryValue("Software\\Dane Prairie Systems\\Win2PDF", "persistent", "0", regKeyCurrentUser)
else
     errorShow("Failed to make Win2PDF the current printer")
endIf

Has anyone run into similar issues with printerSetCurrent?

Thanks,

Gary

 Posted 4 months ago (Thread Starter)
Comment Quote
About GaryG -Collapse +Expand
Visit Profile
Membership pending.
Member subscribes to this thread but email is NOT VERIFIED.
Email Not Verified!
Once email is verified, we will review and approve the account.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #18081, 7 replies
Thread Started 7/6/2020 10:54:40 AM
View Counter=143
Last Reply Posted 8/3/2020 1:01:24 PM)
Location=-- USA 
Joined=27 months ago   MB Posts=16  
Moderator
Steven.G
Myrtle Beach, SC USA

yes, that's been the final version of Paradox for many years

step thru the three lines, see if you can see if one hangs, rather than the SetCurrent.. although I have no clue what to suggest once you know.. once those values have been set, why do they have to be reset every time you print?

Steven Green
Senior Software Engineer
Paradox Support Specialist DOS/WIN

Prestwood IT Solutions
8421 Auburn Blvd, Suite 256, Citrus Heights, CA 95610
Office: 916-726-5675 | Fax: 916-726-5676 | http://www.prestwood.com
 Posted 4 months ago
Comment Quote
About Steven.G -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.

Post ID #18082 (Level 2) and Parent is 18081
Reply Posted 7/6/2020 11:04:35 AM
Location=Myrtle Beach, SC USA 
Joined=50 months ago   MB Posts=412  
GaryG
Arrow Box Company
-- USA

It is definitely hanging on the printerSetCurrent command.

That is just a snippet of the code. The larger process saves the name of the current printer, changes the current  printer to Win2PDF(which is a PDF writer we are using). At the end of the process, it changes the current printer back to the printer name saved earlier.

I think the only thing left to try is to uninstall Paradox and re-install it.

 Posted 4 months ago (Thread Starter)
Comment Quote
About GaryG -Collapse +Expand
Visit Profile
Membership pending.
Member subscribes to this thread but email is NOT VERIFIED.
Email Not Verified!
Once email is verified, we will review and approve the account.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #18083 (Level 3) and Parent is 18081
Reply Posted 7/6/2020 11:11:06 AM
Location=-- USA 
Joined=27 months ago   MB Posts=16  
Moderator
Steven.G
Myrtle Beach, SC USA

I'd suggest a bad registry entry over a bad paradox, in this case.. uninstall both

Steven Green
Senior Software Engineer
Paradox Support Specialist DOS/WIN

Prestwood IT Solutions
8421 Auburn Blvd, Suite 256, Citrus Heights, CA 95610
Office: 916-726-5675 | Fax: 916-726-5676 | http://www.prestwood.com
 Posted 4 months ago
Comment Quote
About Steven.G -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.

Post ID #18084 (Level 4) and Parent is 18081
Reply Posted 7/6/2020 11:28:33 AM
Location=Myrtle Beach, SC USA 
Joined=50 months ago   MB Posts=412  
GaryG
Arrow Box Company
-- USA

It turns out that installing Adobe Illustrator is the culprit. There must be some incompatibility.

 Posted 117 days ago (Thread Starter)
Comment Quote
About GaryG -Collapse +Expand
Visit Profile
Membership pending.
Member subscribes to this thread but email is NOT VERIFIED.
Email Not Verified!
Once email is verified, we will review and approve the account.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #18107 (Level 5) and Parent is 18081
Reply Posted 8/3/2020 11:10:56 AM
Location=-- USA 
Joined=27 months ago   MB Posts=16  
Moderator
Steven.G
Myrtle Beach, SC USA

wow.. not a totally uncommon combination, but it must have taken some interesting detective work to figure that one out

Steven Green
Senior Software Engineer
Paradox Support Specialist DOS/WIN

Prestwood IT Solutions
8421 Auburn Blvd, Suite 256, Citrus Heights, CA 95610
Office: 916-726-5675 | Fax: 916-726-5676 | http://www.prestwood.com
 Posted 117 days ago
Comment Quote
About Steven.G -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.

Post ID #18108 (Level 6) and Parent is 18081
Reply Posted 8/3/2020 11:13:38 AM
Location=Myrtle Beach, SC USA 
Joined=50 months ago   MB Posts=412  
GaryG
Arrow Box Company
-- USA

Fortunate to have a reliable user.... "the only thing I did different today was install Adobe Illustrator".

 Posted 117 days ago (Thread Starter)
Comment Quote
About GaryG -Collapse +Expand
Visit Profile
Membership pending.
Member subscribes to this thread but email is NOT VERIFIED.
Email Not Verified!
Once email is verified, we will review and approve the account.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #18109 (Level 1.1)  Reply to 18108 and Parent is 18081
Thread Started 8/3/2020 11:15:47 AM
Location=-- USA 
Joined=27 months ago   MB Posts=16  
Most Recent Post
josephpnorris
Lumberton, NJ USA

We've had this problem "forever" and haven't figured it out.  Windows 7.    It seems to come and go, but could be related to unusual status of one of your printers.   Try rebooting, etc.  Try removing unneeded printers.

 Posted 117 days ago
Comment Quote
About josephpnorris -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.
Old Account!
If this is your account, sign in to activate web presence data (sign in quarterly to keep active). Alternatively, you can subscribe to our monthly eMag with a valid email address.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #18110 (Level 7) and Parent is 18081
Reply Posted 8/3/2020 1:00:16 PM
Location=Lumberton, NJ USA 
Joined=13 years ago   MB Posts=1  

Revive Thread!

Add a comment to revive this old thread and make this archived thread more useful.

Write a Comment...
Full Editor
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1287A1
Enter key:
Icon: A Post    Thread    Idea    Important!    Cool    Sad    No    Yes    Includes a Link...   
Thread #18081 Counter
143
Since 7/6/2020

Follow PrestwoodBoards on: 


©1995-2020 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech