How can I export PDF from Aras? And add a function when I click relation line

Hi everyone

I am new here ,  I write a client method to sent value to server method to create a excel for user to download,

and now my boss says the file need to be PDF 

the only way I can find is using "Microsoft.Office.Interop.Excel.dll" ,

but it fail on aras , I had try many times

how can I do? Is there any other way to export PDF ?

And  When I right-click on relation's line it shows  view / copy / lock , how can I add a new function at here?

thanks !!!! 

BTW my version is 11SP9

  • Hello,

    Could you clarify what kind of data you're trying to export as a PDF? If this is just Form data or a small amount of relationship grid data, you might be able to get away with just using the standard JavaScript print() function. Your users can then choose to print the data to a PDF. Also, could you clarify what error you're getting when trying to use that Office DLL? Have you followed the steps from this blog post to link an external DLL to your Aras Innovator instance?

    Alternatively, depending on what kind of data you're trying to export, an Aras subscription will allow you to use the Conversion Server which supports exports to PDFs for some kinds of documents. You can email to learn more about signing up for an Aras subscription. 

    To answer your last question, the easiest way to add an item to the context menu of the relationship grid is to add an Action onto the related ItemType or the Relationship ItemType. 


    Christopher Gillis

    Aras Labs Software Engineer

  • Hi Chris

    Thanks for your reply

    I want to export a itemtype's information and its relation items like packing list
    , etc. Contains images, lists, special formats.

    system show that I am miss the reference,

    And Yes I followed that steps to link dll,

    but I just Add dll to the install bin folder even not using it ,
    It's almost blank on the interface, it can't be used. so I don'k know why is that.

    last question, you mean the client event and server event on itemtype ?

    thanks again!!!

    And I
    want to ask another question, I want to develop a web at local machine,

    to receive value and sent value to aras

    whow can i use aras's method on it? like .getItemById...
  • Hello,

    You may want to avoid Microsoft.Office.Interop.Excel.dll, I suggest you read this:

    Basically you are driving Excel from your code. On a server it's not a good idea.

    There're a lot of other ways to generate pdf, some free and simple, like Christopher Gillis proposed. Some paying and with more options, but do you need it?

    Best Regards,

    Sacha Bertschi

  • Very helpful and informative. Thank for sharing this post.

    MyGroundBiz Login