FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Terminal-server problem
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Terminal-server problem
Posted: Sat Oct 07, 2017 06:21 PM

Hi,

I have a very strange problem.
I have a program running on a Terminal-server.
If I print to the 'Adobe PDF' printer with the command 'Print ... FROM USER and select 'Adobe PDF', it works.
If I use PRINTER ... TO 'Adobe PDF', I get an error, printer not installed.
If I list al the printers with the function aGetPrinters(), I can't see 'Adobe PDF', but the other installed printer , and a lot of printers that are not installed anymore.
It seems that GetProfString(), that is called from PRINTER, does not see the correct printers.
This is the first time that I have this problem, it is also the first time that it is used on Terminal Server.
That version of program is an old version of FWH7.10.

Is there a way to soved this problem?

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Terminal-server problem
Posted: Sat Oct 07, 2017 09:48 PM

Hello Marc ,
sometimes we too have the same problems.
This happens if the printer spooler service is not started and therefore you have no standard printer.

Which account uses the the remote user.
Have you added the RemoteDesktopUser to your useres and have you set the rights.

aGetPrinters()
seems to list the printers from registry entries.
You have to clean your entries.
Best regards,
Otto

Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: Terminal-server problem
Posted: Sat Oct 07, 2017 10:21 PM

Hi Otto,

I logged it with the same account as the user.
Before he was using PDFCreator-Terminal version. That was working fine, but since he have Adobe Acrobat Pro, he asked me to create the files with Adobe PDF, but that is not working.
It's strange that it work from PRINT ... FROM USER.

Do I have to to delete them from 'HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Devices' ?

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Terminal-server problem
Posted: Sun Oct 08, 2017 07:53 AM

Hello Marc,
please Google for:
"Adobe Acrobat Pro Terminal Server Use":
Maybe Adobe Acrobat Pro is not supported on TS.
Best regards,
Otto

Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: Terminal-server problem
Posted: Sun Oct 08, 2017 10:49 AM

Hi Otto,

I deleted the not used printers in the registery, and now it's working :lol:
It seems, if there are to many printers, FWH don't see them all.
A displayed all printers returned with aGetPrinters(), al in the beginning the Adobe PDF was not shown.
After deleted some in the registry, Adobe was also displayed 8)

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite

Continue the discussion