Once this error has occured then the only way we seem to be able to overcome it is to reinstall the Amyuni driver, a system reboot results in the same error.
We are using Visual Studio 2005 and the code that is failing is written in C# using dotnet framework 1.1
basically the code is doing this:-
Code: Select all
IntPtr converter;
converter = DriverInit("Digita PDF Converter");
if( converter )
{
if( EnablePrinter(converter, "Our Name", "Our License Key" )
{
SetDefaultPrinter(converter);
SetDefaultFileName(converter, filename);
SetFileNameOptions(converter, 0x8000003);
// Do the print job
RestoreDefaultPrinter(converter);
SetFileNameOptions(converter, 0);
DriverEnd(converter);
converter = IntPtr.Zero;
}
}
Thanks