fayrehouse
12 years agoFrequent Contributor
Am I misunderstanding the CLR Bridge?
Hi All,
As part of my efforts to be able to diseminate PDFs from within my TC project, I've come across iTextSharp - http://sourceforge.net/projects/itextsharp/
Looking at some examples of iTextSharp in use at http://simpledotnetsolutions.wordpress.com/2012/04/08/itextsharp-few-c-examples/ I was under the impression I could download iTextSharp, add the DLL(s) to the CLR Bridge, reload, and then in my script I could then do something like:
var my iTSObject = dotNet_iTextSharp_text_pdf_parser.pdfreader.zctor() (or something to that effect)
But having added my iTextSharp DLL to the CLR Bridge, and reloaded - no new namespaces are listed under the dotnet object.
Can anyone advise where I'm being an idiot? :) Someone once said "there is no such thing as a stupid question". I'm not so sure here... but help!? :)
As part of my efforts to be able to diseminate PDFs from within my TC project, I've come across iTextSharp - http://sourceforge.net/projects/itextsharp/
Looking at some examples of iTextSharp in use at http://simpledotnetsolutions.wordpress.com/2012/04/08/itextsharp-few-c-examples/ I was under the impression I could download iTextSharp, add the DLL(s) to the CLR Bridge, reload, and then in my script I could then do something like:
var my iTSObject = dotNet_iTextSharp_text_pdf_parser.pdfreader.zctor() (or something to that effect)
But having added my iTextSharp DLL to the CLR Bridge, and reloaded - no new namespaces are listed under the dotnet object.
Can anyone advise where I'm being an idiot? :) Someone once said "there is no such thing as a stupid question". I'm not so sure here... but help!? :)
- Hi Steve, I had a similar problem when trying to utilise the WinSCP assembly to perform SFTP tasks.
I solved the issue by registering the assembly in the GAC and importing it into Test Complete from there.
I think it has something to do with other assemblies it requires being available.