I have been trying to use PdfSharp in Visual basic 6. I tried to generate a COM pdfSharp.dll that could be used from VB6. In Visual Studio 2005 I have selected the register as COM dll option and added the "using System.Runtime.InteropServices;" line. The dll does not build, however. I get the following error:
"The assembly "C:\.....\PdfSharp\bin\Debug\PdfSharp.dll" could not be converted to a type library. Type library exporter encountered an error while processing 'PdfSharp.Pdf.Content.Objects.OpCodeName.B, PdfSharp'. Error: Ambiguous name."
Does anybody succeeded in building a COM dll from pdfSharp?
Is there any other way to use the library fom VB6?
Thank you in advance.
|