Hi,
I am runnign a licensed version of ASPose.PDF, and need to call the BindXML method from Visual Basic 6.
After looking at the VbScript sample you provide on the website, i have got this far:
Set pdf1 = CreateObject(“Aspose.Pdf.Pdf”)
Set Lic = CreateObject(“Aspose.Pdf.License”)
Lic.SetLicense (“c:\bin\Aspose.pdf.lic”)
pdf1.BindXML “c:\xml\home.xml”, “c:\xml\stuff.xsl”
pdf1.Save (“test1.Pdf”)
When i run the code above i get the following error on line 4, tunning the call to BindXML.
Runtime Error 5 :
Invalid Procedure Call or Argument
Any assitance you can give me in resolving this issue will be greatly recieved.
thanks
C Smith
Dear Smith,
Thank you for considering Aspose.
Sorry for not making it clear in the programmer’s guide. I have updated the UsingInCOMApplications . For the overload method BindXml, you should write your code like the following:
pdf1.BindXML_2 “d:/share/HelloWorld-Content.xml”, “d:/share/HelloWorld.xslt”