We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

TLB file missing from Aspose.Words for .NET 14.11.0

I need to prove that this library can be accessed as a COM object before my company will consider purchasing this product.


I downloaded the trial version for

Aspose.Words for .NET 14.11.0

but the file

Aspose.Words.tlb

is missing. Please help.

Sincerely,

Clay S. Didier
Lead Software Engineer
enLabel Global Services
300 Commercial Street
Boston, MA

Hi Clay,


Thanks for your inquiry. Yes, Aspose.Words.dll can be accessed as a COM object. If you need to use many of the Aspose.Words classes, methods and properties, consider creating a wrapper assembly (using C# or any other .NET programming language), that will help to avoid using Aspose.Words directly from unmanaged code.

A good approach is to develop a .NET assembly that references Aspose.Words and does all the work with it, and only exposes the minimal set of classes and methods to unmanaged code. Your application then should work just with your wrapper library. For example, you can create a wrapper that uses latest Aspose.Words for .NET assembly as follows:

1. Open Visual Studio and create “Class Library” project and add a reference to latest Aspose.Words assembly.
2. Create method, which accepts two parameters (input document path and output document path). Here is source code of the wrapper:

namespace AsposeComWrapper

{<o:p></o:p>

public class Methods<o:p></o:p>

{<o:p></o:p>

public Methods() { }<o:p></o:p>

public void ExportToEpub(object inPath, object outPath)<o:p></o:p>

{ <o:p></o:p>

Document doc = new Document((string)inPath);<o:p></o:p>

HtmlSaveOptions saveOptions = new HtmlSaveOptions();<o:p></o:p>

saveOptions.SaveFormat = SaveFormat.Epub;<o:p></o:p>

saveOptions.ExportFontResources = true;<o:p></o:p>

doc.Save((string)outPath, saveOptions);<o:p></o:p>

} <o:p></o:p>

}<o:p></o:p>

}


3. Now, you should make your class library signed and visible for COM.
4. After building the project, you should register the DLL using the following command:
regasm /codebase AsposeComWrapper.dll

5. Once your helper DLL is registered, you can use it to export Word document to EPUB. Here is sample code:

<%

Dim lic<o:p></o:p>

Set lic = CreateObject(“Aspose.Words.License”)<o:p></o:p>

lic.SetLicense(“C:\temp\Aspose.Words.lic”)<o:p></o:p>

Dim comHelper<o:p></o:p>

Set comHelper = CreateObject(“AsposeComWrapper.Methods”)<o:p></o:p>

comHelper.ExportToEpub “C:\temp\in.doc”, “C:</span>temp\out.epub”<o:p></o:p>

%>


I hope, this helps.

Best regards,