Hi,
a problem occurred while migrating application to PB2017 R3 Build 1915 from PB12_5.
This is the scenario:
the application needs to set a specific printer before printing document. There could be many documents printing and everyone could have a different printer.
This operation is made by setting windows registry using the function RegistrySet(as_key, as_value, as_var) before printing the document
where
as_key = "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows"
as_value = 'Device'
as_var = <printer name>
In PB12_5 and lower versions the application give no problem, even in Win10, but only in runtime.
In PB2017 or PB2019 (i download the trial of PB2019 to try with this version) it uses always the default printer even if it correctly set the 'Device' key with the right printer. Morover and apparently randomly, sometimes the application seems to work but the document not printed. This never happen with PB12_5 version.
From PB environment (Pb12_5, Pb2017 and PB2019) the 'Device' key is correctly set, but no way to print with specific printer (always uses default printer).
Someone could help me?
Thanks a lot
Luca
thank you for your reply.
I agree with you but i have to report a slightly different behavior in my app from what you say.
We have to distinguish this cases:
- launching the app from environment (PB 12_5, Pb2017, PB2019 ) RegistrySet method works fine setting the right printer but after that it always uses the default printer to print document . Behavior is the same for Win10, Win7
- launching the .exe file after deploy, only with PB12_5 compilation it works fine. This is certainly true because we have several users that are now using the app (deployed in PB12_5 and on different OS , Win10 included) without any problem. We noticed the bug beacuse we are porting the app from PB12_5 to PB2017 (or PB2019) to get official certification of compatibility for Win10.
If it' necessary i will provide a test case
Thank you very much
Best regards
Luca
Yes, please report this problem to our ticket system: https://www.appeon.com/standardsupport/newbug and also upload the test case when submitting the ticket, thanks in advance.