Hi,
I have installed Pdfcreator 1.3.2 on a windows server 2008 R2. I have tried to configure a fpf printer for all computer in our domain. I want use a script to send automaticly the pdf by email to the user.
So With a previous release of pdfcreator (1.2.3) I was able to use the pdf printer from any computer and put the pdf document into a folder. But the script to send email has never run correctly. So since I have installed the new and last relaese, I am not able to create any pdf from any computer excet the server itself !!
Is ther anybody can help me . I can provide any other informations if necessary.
Thanks
H.Sabatou
Hi,
maybe you didn´t do a server installation (which is a bit hidden in v 1.3.2, you need to run the setup with the parameter /Expert to choose server installation). If this isn´t the case, please contact us again.
regards,
Robin
Hi,
Thank you Robin for your anwser.
I have re-installed with /expert and now I can print a pdf from any computer into a specific folder in my network.
So the second step is still not running : send an email to the user with the pdf file in attachment.
I use a script with 3 parameters :"" "" ""
Here is the script
`' NetSend script
' Part of PDFCreator
' License: GPL
' Homepage: http://www.sf.net/projects/pdfcreator
' Version: 1.1.0.0
' Date: September, 1. 2005
' Author: Frank Heindörfer
' Comments: Please be shure that the messenger service is started!
Option Explicit
Const AppTitle = "PDFCreator - EmailSend"
'
Dim objArgs
Set objArgs = WScript.Arguments
'
If objArgs.Count = 0 Then
MsgBox "This script needs a parameter!", vbExclamation, AppTitle
WScript.Quit
else
msgbox "Arg 0 : " & objArgs(0) & vbcrlf & _
"Arg 1 : " & objArgs(1) & vbcrlf & _
"Arg 2 : " & objArgs(2)
End If
'
Dim objMessage
Set objMessage = CreateObject("CDO.Message")
'objMessage.Subject = "Création du fichier Pdf : " & objArgs(0)
objMessage.Subject = "Création du fichier Pdf : "
objMessage.From = "PdfCreator_zeus@sefi-fr.net"
objMessage.To = objArgs(1) & "@sefi-fr.net"
objMessage.TextBody = "Bonjour, le fichier " & objArgs(0) & " a été généré par PdfCreator sur ZEUS. " & vbcrlf & _
"depuis la machine : " & objArgs(2) & "."
'
objMessage.AddAttachment objArgs(0)
'
'==This section provides the configuration information for the remote SMTP server.
'==Normally you will only change the server name or IP.
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
'
'Name or IP of Remote SMTP Server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "192.168.40.1"
'
'Server port (typically 25)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
'
objMessage.Configuration.Fields.Update
'
'==End remote SMTP server configuration section==
'
objMessage.Send`
So I have an error message on my server :
Script
Line : 27
Caract.:1
Err.: Library not registered (Bibliotheque non inscrite)
Code.:8002801D
Source : (null)
The script is ok because if i start manually the script in prompt command the script run correctly but when the script is started from pdfcreator there is this error : I don't understand !!
Can you help me ?
Thanks
best regards
Hello,
I don't know the reason for sure, but maybe the library has to be registered for the user that currently is printing as well or something like that.
You could also try the new blat script I have posted yesterday:
http://www.pdfforge.org/forum/help/8788-send-email-automatically#comment-6762
kind regards,
Philip