Word doc to pdf in VB6.0


#1

Hi,

This is Pavan working for Polaris,India.

Our requirement is as follows

1.On execution of our application generates a word document.

2.Now we want to convert it to Pdf

One of our colleague's team is using aspose.pdf library for their .Net application and converting it to PDF.Our application is in VB6 So w.r.t above requirement can you provide a library developed in VB6 which can be used in our code and generate PDF accordingly.

So can you please provide the same library in VB6.

Thankyou very much !

Regards,

Pavan Morishetty.


#2

Dear Pavan,

I think you can use Aspose.Pdf in VB6 as a COM client. Please refer to http://www.aspose.com/Wiki/default.aspx/Aspose.Pdf/UsingInCOMApplications.html and http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconexposingnetframeworkcomponentstocom.asp. If you have more question please let us know.


#3

Hello,

Thanks for your prompt reply.

We tried converting the dll to .tlb using regasam and added a reference but still we had problems like

Received the following error while creating the object

Dim Pdf1
Set Pdf1 = CreateObject("Aspose.Pdf.Pdf")

ERROR : "Active X component can't create object"

Please provide us the same library in VB6.

Please suggest us a solution as we have only VB runtime available with us.

Regards,

Pavan Morishetty


#4

In fact I’m not familiar with this issue and we have never test it with VB6. I may need some time to study this issue. If you have any advice please tell me.


#5

I installed VB 6 at one of my PC and tested this issue. It works in my test. I used the following command to register the dll:

regasm "Aspose.Pdf.dll" /tlb /codebase