default printer Windows 10

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

default printer Windows 10

Postby elcsoft » Wed Apr 06, 2016 12:12 pm

after setting set the device to a printer and call printdoc the default printer in Win10 is changed. In win 7 the default printer is not touched

How can i avoid that?

I tried with V. 6.10 and 7.10 VPE enhanced
elcsoft
 
Posts: 36
Joined: Wed Jan 26, 2005 9:09 am

Re: default printer Windows 10

Postby IDEAL Software Support » Wed Apr 06, 2016 12:50 pm

We tested it right now explicity for you. This does not happen here. Also the internal code of VPE does nothing, which could change the default printer. The cause for your problem must be somewhere else. But we have no idea where, we haven't heard anything like that ever before.
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Re: default printer Windows 10

Postby elcsoft » Wed Apr 06, 2016 1:41 pm

I made a totally simple form in Visual Foxpro now. Generated an executalbe and i had the same effect.
Code: Select all
with thisform.poVPE
  .opendoc()
  .device="fax"
  .printdoc(.f.)
  .closedoc()
endwith


What is wrong here?
elcsoft
 
Posts: 36
Joined: Wed Jan 26, 2005 9:09 am

Re: default printer Windows 10

Postby IDEAL Software Support » Wed Apr 06, 2016 3:49 pm

On our Win 10, it does not change the default printer.
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Re: default printer Windows 10

Postby JudgeTerry » Thu Apr 07, 2016 10:20 pm

Micro$oft strikes again!

I saw this posted on another BB System. It should help.

http://winaero.com/blog/how-to-stop-windows-10-from-changing-the-default-printer/

>> SET RANT ON <<
This is the type of arrogance and short sighted thinking we have come to expect from Microsoft. Why have 'Default Printers' if the default is going to change unexpectedly? If they wanted to offer an option to have dynamic defaults, then set that as an option, but do not make it the new default!
>> SET RANT OFF <<

The best way to avoid miss selected printers is not to rely on the default printer, but to use the VpeSetupPrinter() function to create .PRS files to store printer selections and printer settings.

Terry
JudgeTerry
 
Posts: 30
Joined: Thu Jan 22, 2009 10:56 pm

Re: default printer Windows 10

Postby JudgeTerry » Fri Apr 08, 2016 3:52 am

After testing the above setting change on several Win 10 machines, it appears that the setting does not survive a Power Off/Power On cycle depending on your log-in rights and/or a bug in the Win 10 version.

Setting the following registry key seems to be more reliable:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows
LegacyDefaultPrinterMode set the Value data: to 1

Terry
JudgeTerry
 
Posts: 30
Joined: Thu Jan 22, 2009 10:56 pm

Re: default printer Windows 10

Postby IDEAL Software Support » Fri Apr 08, 2016 12:51 pm

Thank you for your efforts, Terry. This is really Microsoft at its best. :-)
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 26 guests

cron