Set PDFPrinter = PDFPFactory.Printer("", "PDF-XChange 4.0", "Key1", "Key2")
PDFPrinter.SetAsDefaultPrinter
'[Routine works up to here and pdf's can be created]
PDFPrinSServerApp = PDFPrinter.AddSMTPServer("192.168.6.27", 25, -1, "UserID", "Password", -1)
Compile Error:
Expected Function of Variable.
The user ID and password are entered as well as the liscence keys.
Using Microsoft Access 97
Do you see anything wrong with this?
Thanks
Error Creating SMTP Server Access 97
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan
-
- Site Admin
- Posts: 3556
- Joined: Thu Jul 08, 2004 10:36 pm
- Location: Vancouver Island - Canada
Re: Error Creating SMTP Server Access 97
Maybe the reason is because AddSMTPServer is a sub without a return value?
Code: Select all
Sub AddSMTPServer(sName As String, nPort As Long, bNeedAuth As Long, sUser As String, sPassword As String, bSecureConnection As Long)
Member of PXCComLib.CPXCPrinter
Add definition of SMTP server
Tracker Software (Project Director)
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
-
- User
- Posts: 8
- Joined: Sat Jan 01, 2005 8:25 pm
Re: Error Creating SMTP Server Access 97
I tried that as well, since it is a sub, but I receive the error "Compile Error: Expected =".
PDFPrinter.AddSMTPServer("192.168.6.27", 25, -1, "UserID", "Password", -1)
and
PDFPrinter.AddSMTPServer("192.168.6.27", 25, True, "UserID", "Password", True)
PDFPrinter.AddSMTPServer("192.168.6.27", 25, -1, "UserID", "Password", -1)
and
PDFPrinter.AddSMTPServer("192.168.6.27", 25, True, "UserID", "Password", True)
-
- Site Admin
- Posts: 3556
- Joined: Thu Jul 08, 2004 10:36 pm
- Location: Vancouver Island - Canada
Re: Error Creating SMTP Server Access 97
Please check (and send me screenshot) of how this function is represented into Access object inspector.
Tracker Software (Project Director)
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
-
- User
- Posts: 8
- Joined: Sat Jan 01, 2005 8:25 pm
Re: Error Creating SMTP Server Access 97
Here is the screen shot of the Object Viewer.
Thanks
Marc
Thanks
Marc
You do not have the required permissions to view the files attached to this post.
-
- Site Admin
- Posts: 3556
- Joined: Thu Jul 08, 2004 10:36 pm
- Location: Vancouver Island - Canada
Re: Error Creating SMTP Server Access 97
So, it is a Sub without a return value and you cannot use the syntax
PDFPrinSServerApp = PDFPrinter.AddSMTPServer("192.168.6.27", 25, -1, "UserID", "Password", -1)
You need to use
PDFPrinter.AddSMTPServer "192.168.6.27", 25, -1, "UserID", "Password", -1
PDFPrinSServerApp = PDFPrinter.AddSMTPServer("192.168.6.27", 25, -1, "UserID", "Password", -1)
You need to use
PDFPrinter.AddSMTPServer "192.168.6.27", 25, -1, "UserID", "Password", -1
Tracker Software (Project Director)
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.