I have the following C# COM Object :
[ComVisible(true), GuidAttribute("FD87D0EA-1D00-4189-801A-987D5F8ABD2C")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IRegistration
{
string RegisterForm(string server, string database, string username, string password, string catalogId, string date, string AxyaContextFile);
void RegisterFormAcknowledge(string server, string database, string username, string password, long formId, bool isPrinted, string message);
}
When I call the method RegisterFormAcknowledge from Word 200, I get the following compilation exception : function or interface marked as restricted or the function uses an automation type not supported
Here is the Word macro code
Set printer = New MyCOMObject.Registration
printer.RegisterFormAcknowledge "test", "test", "test", "test", 12345, False, "CatalogWordTemplate Not Found"
Does anyone has an idea why ? Long type are not supported by VB6 ? The first method RegisterForm is working well.