Terminal-server problem

Terminal-server problem

Postby Marc Vanzegbroeck » Sat Oct 07, 2017 6: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
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: Terminal-server problem

Postby Otto » Sat Oct 07, 2017 9: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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6347
Joined: Fri Oct 07, 2005 7:07 pm

Re: Terminal-server problem

Postby Marc Vanzegbroeck » 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
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: Terminal-server problem

Postby Otto » Sun Oct 08, 2017 7: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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6347
Joined: Fri Oct 07, 2005 7:07 pm

Re: Terminal-server problem

Postby Marc Vanzegbroeck » 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
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 51 guests