VarianAPIs / Varian-Code-Samples

Code samples for ESAPI and other Varian APIs and web services.
MIT License
114 stars 106 forks source link

Building PDF reports #86

Open eljj opened 3 years ago

eljj commented 3 years ago

I am developing Eclipse API scripts (V15.5) that generate PDF documents using the iTextSharp assembly. We are an all thin client Citrix Full Scale Cloud configuration, I build these scripts using Visual Studio 2017 on my local workstation then upload them the published scripts folder in the cloud. The issue I am having is in order to have the script properly identify the iTextSharp assembly I have to build it as a binary plugin. That works, but then I have issues with disconnecting the dll for the next use. Is it possible to have the iTextSharp assembly loaded somewhere in the cloud so that a plug in script that compiles on Eclipse can find iTextSharp?

mayurmunshi commented 3 years ago

Hi, Have you tried running iTextSharp from within the Citrix login? Try accessing it from the Drive ( it might be called I drive or something).You need to map your drive first to your computer where you have installed ITextSharp and you can run your program by going to the location of your installed program from within the Citrix.

eljj commented 3 years ago

Thanks for the reply, let me explain what I have tried:

We are a full scale cloud configuration and cannot directly access any Citrix server. We do have a share on the on the “Image Server”. I build the plugin scripts from Visual Studio on my desktop. I have built the plugin scripts directly to a folder on the Image server that includes the iTextSharp assembly. However, the script fails on execution since Eclipse compiles the script on the fly and evidently does not look for the iTextSharp assembly in the Image Server folder, but an assembly not found error is generated . I suppose if iTextSharp were registered in the GAC, the compile event would be successful but I cannot get anyone at Varian to address this request. Any other comments would be appreciated.

E. Lee Johnson, Ph.D, DABR Professor Director of Graduate Studies for Radiation Sciences Dept. of Radiation Medicine UK Chandler Medical Center Pavilion H Room C25 800 Rose Street Lexington, KY 40536-0293 ph: 859-323-1570 email: eljj@uky.edumailto:eljj@uky.edu [https://proxy.qualtrics.com/proxy/?url=https%3A%2F%2Fuky.az1.qualtrics.com%2FCP%2FGraphic.php%3FIM%3DIM_3ecXSXWpMRz4qDH&token=DyB6QlE%2FkeLd7R5Usce%2BLCVHTLjdu5pYoIMzB3Wnq1o%3D]

STATEMENT OF CONFIDENTIALITY:

The contents of this email and any attachments are confidential and are intended solely for the addressee(s). The information contained in this email may also be legally privileged. It may also contain student educational records, protected health information, patient safety work product, personally identifiable information, or personal information protected from disclosure under federal or state law. If you have received this email in error, any use, reproduction, or dissemination of this email is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by email, contact the Chief Privacy Officer at (859) 323-1184 and delete this message and its attachments, if any. Receipt by anyone other than the intended recipient is not a waiver of any legal privilege or protection from disclosure.

From: mayurmunshi notifications@github.com Sent: Tuesday, October 27, 2020 6:33 AM To: VarianAPIs/Varian-Code-Samples Varian-Code-Samples@noreply.github.com Cc: Johnson, Ellis L. eljj@email.uky.edu; Author author@noreply.github.com Subject: Re: [VarianAPIs/Varian-Code-Samples] Building PDF reports (#86)

CAUTION: External Sender

Hi, Have you tried running iTextSharp from within the Citrix login? Try accessing it from the Drive ( it might be called I drive or something).You need to map your drive first to your computer where you have installed ITextSharp and you can run your program by going to the location of your installed program from within the Citrix.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FVarianAPIs%2FVarian-Code-Samples%2Fissues%2F86%23issuecomment-717146509&data=04%7C01%7Celjj%40email.uky.edu%7Cb1d49b5a7a8b41390fd908d87a63bcff%7C2b30530b69b64457b818481cb53d42ae%7C0%7C1%7C637393916076799081%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=aJ9yNXsJPkOGkrX2gU5Hax%2BaMBzrpCWbgezng17DSA8%3D&reserved=0, or unsubscribehttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAQYTWNZB7RX334QEDH5YLOLSM2OXLANCNFSM4QNEI6DA&data=04%7C01%7Celjj%40email.uky.edu%7Cb1d49b5a7a8b41390fd908d87a63bcff%7C2b30530b69b64457b818481cb53d42ae%7C0%7C1%7C637393916076809076%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=ygvXDmX4gTTQCNW15gAErg5KzVtNX5TDgMmClYZNHEs%3D&reserved=0.

mattcschmidt commented 3 years ago

Hello, When we have this issue with Binary plugins, the first thing we try is to instantiate a dummy variable from the assembly that is not found. For instance you could put ITextSharp.SomeClass dummy = new ITextSharp.SomeClass(); immediately in the Execute method, and that will ensure that the ITextSharp assembly does not get missed by the Eclipse runtime.