Hi all,
Is there some way to call a .Net function through OScript?
Thanks,
Shruti
Hi Shruti,
No, not directly. Oscript does have a JavaObject class that you can use along with a Java to .Net bridge software ( google can find a few ) to call .Net indirectly.
.r.
not directly, although you can make XML / REST/ WebService calls from OScript which could be processed by a .Net function. Can you provide more detail on what you are trying to do ?
Thanks Greg. We are trying to call a .Net code through Oscript which converts an XLS document into PDF.
OScript downloads that document locally from CS and then this script needs to be called to convert it. Do you have any example to show how XML/Rest/ Web service calls can be made from Oscript?
Hi,
There is a XML and XSL parser build into CS that you can directly call from OScript.
Look for SAXParser and xslProcessor on the page:https://knowledge.opentext.com/knowledge/llisapi.dll?func=ll&objId=42329092&objAction=browse&viewType=1
If that is not good enough I would suggest that you try to use a java based processor and load that into CS.
Hans
From: eLink Entry: Content Server Development Forum [mailto:development@elinkkc.opentext.com]Sent: Mittwoch, 4. November 2015 17:09To: eLink RecipientSubject: Calling a .Net function through OScript 2
Calling a .Net function through OScript 2
Posted by Mishra, Shruti On 11/04/2015 10:57 AM
[To post a comment, use the normal reply function]
Topic:
Calling a .Net function through OScript
Forum:
Content Server Development Forum
Content Server:
Knowledge Center
Have you looked at OpenText Renditions, with Adlib to convert documents to PDF ? this could be a more sensible, and maintainable solution rather than lots of custom code ?