Error Creating SMTP Server Access 97

PDF-XChange Drivers API (only) V4/V5
This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers SDK (only) - VERSION 4 & 5 - Please use the PDF-Tools SDK Forum for Library DLL assistance.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

myouth
User
Posts: 8
Joined: Sat Jan 01, 2005 8:25 pm

Error Creating SMTP Server Access 97

Post by myouth »

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
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3556
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada

Re: Error Creating SMTP Server Access 97

Post by Ivan - Tracker Software »

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.
myouth
User
Posts: 8
Joined: Sat Jan 01, 2005 8:25 pm

Re: Error Creating SMTP Server Access 97

Post by myouth »

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)
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3556
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada

Re: Error Creating SMTP Server Access 97

Post by Ivan - Tracker Software »

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.
myouth
User
Posts: 8
Joined: Sat Jan 01, 2005 8:25 pm

Re: Error Creating SMTP Server Access 97

Post by myouth »

Here is the screen shot of the Object Viewer.
Thanks
Marc
You do not have the required permissions to view the files attached to this post.
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3556
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada

Re: Error Creating SMTP Server Access 97

Post by Ivan - Tracker Software »

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
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.