.NET not implemented exception when calling AddSMTPServer()

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

Post Reply
nphaingdy
User
Posts: 25
Joined: Tue Nov 11, 2008 12:04 am

.NET not implemented exception when calling AddSMTPServer()

Post by nphaingdy »

Hi When I call AddSMTPServer() it throws a NotImplmentedException in .NET. I am using the PDF-XChange 4 Drivers API v.4.0157 21 Feb, 2009 edition. Here is a sample code:

CPXCPrinter cPrinter = (CPXCPrinter) m_cPrintControl.get_Printer("", "MyPDFPrinter", "<REGCODE>", "<DEVCODE>");


if (cPrinter != null)
{
cPrinter.set_Option("EMail.From", "xxx@xxxxxx.com");
cPrinter.set_Option("EMail.To", "xxx@xxxxxx.com");
cPrinter.set_Option("EMail.Enabled", true);
cPrinter.set_Option("EMail.Method", 2);
cPrinter.set_Option("Email.Server", "default");

cPrinter.set_Option("Save.SaveType", 3);
cPrinter.set_Option("Save.ShowSaveDialog", false);
cPrinter.set_Option("Save.WhenExists", 1);

cPrinter.set_Option("Security.Enabled", true);
cPrinter.set_Option("Security.HasUserPassword", true);
cPrinter.set_Option("Security.UserPassword", "password");
cPrinter.set_Option("Security.Type", 2);
cPrinter.set_Option("Security.Perms128.ContentAccess", true);
cPrinter.set_Option("Security.Perms128.AllowCopying", true);
cPrinter.set_Option("Security.Perms128.Changes", 1);
cPrinter.set_Option("Security.Perms128.Printing", 2);

cPrinter.AddSMTPServer("default", 25, 0, "", "", 0);

}

I am using .NET 3.5 on a Windows XP SP2. 4GB memory. Visual Studio 2008.

Thanks.
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3550
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: .NET not implemented exception when calling AddSMTPServer()

Post by Ivan - Tracker Software »

Will fix into new build which should be released on Monday/Teusday.
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.
nphaingdy
User
Posts: 25
Joined: Tue Nov 11, 2008 12:04 am

Re: .NET not implemented exception when calling AddSMTPServer()

Post by nphaingdy »

Thanks. I just downloaded the latest batch of SDK (March 24, 2009). It appears the function is now implemented.

However, it apppears that a messagebox always appears to pop up when I attempt to print to the print driver after:

MessageBox:

Title: drvui40
Caption: Attach

Is there a way to disable it?

Thanks.
Post Reply