Quantcast
Channel: PDFCreator English - pdfforge forums
Viewing all articles
Browse latest Browse all 1241

PDFCreator COM - Default Printer - Remote Desktop

$
0
0

@sreg wrote:

I am using PDF Creator for Terminal Servers.
I create a PDF through a VBA script that uses the COM interface.

Question 1:
Can I specify in code which printer the COM object should use?
Now, I can change the default printer before and after the code executes.

Question 2:
Why Is this behavior occurring:
I have a PDFCreator on the server, but also a PDFCreator on my client.
I connect via RDP (Remote Desktop) to the server. My PDF Creator on my client is mapped on the server and set as Default Printer. The code below is executed on the server and I want the PDF to be printed on the server.
When I try the code below, the job in put in the queue of my local client, not the server.

Set queue = CreateObject("PDFCreator.JobQueue")
Set printJob = queue.NextJob
queue.Initialize
'do actual printing
queue.WaitForJob(15)
Set printJob = queue.NextJob
printJob.SetProfileByGuid ("DefaultGuid")
printJob.ConvertTo ("c:\temp\file.pdf")

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 1241

Trending Articles