Dotnet Assembly for open and print PDF file form NAV2013

laks84laks84 Member Posts: 4
edited 2012-08-29 in NAV Three Tier
Hi,

May I know any dotnet aseemble and Microsoft.Dynamics.Nav helpers exist for PDF file printing from NAV.
Example for excel file open and printing, we have asembly and Microsoft.Dynamics.Nav helper like
Microsoft.Office.Interop.Excel.ApplicationClass.'Microsoft.Office.Interop.Excel, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'
Microsoft.Office.Interop.Excel.Workbook.'Microsoft.Office.Interop.Excel, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'
Microsoft.Dynamics.Nav.Integration.Office.Excel.ExcelHelper.'Microsoft.Dynamics.Nav.Integration.Office, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
.
the same can we get for PDF file ,Please suggest me.

Thanks & Regards
Laks84

Comments

  • deV.chdeV.ch Member Posts: 543
    I use FoxitReader for this, it lets you Print PDF By a commandline parameters. Of course youc an use Adobe Reader for this but it's limited and it does not close after you print.
    There are component solutions out there (.NET, COM, ActiveX) that let you print PDF directly, but none of them are free. At least i haven't found a free one that worked fro me.
  • laks84laks84 Member Posts: 4
    Hi deV,

    Thank you for your answer,Apart from installing third party softwares like foxitReader,AdobeReader..etc.
    can we get the standrad Dotnet assembly to print a pdf file from NAV2013 code or not?.Please suggest me.

    Regards
    Laks84
  • deV.chdeV.ch Member Posts: 543
    There is no standard dotnet assembly to do that. You need a PDF Renderer, like foxit or adobe.
    If there would be a standard assembly you would be able to print pdf without installing adobe, but afaik you can't.
  • kinekine Member Posts: 12,562
    What about using standard SAVEASPDF function of the report directly included in NAV 2013? ;-)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • deV.chdeV.ch Member Posts: 543
    If i anderstood the TS right he want to print an already existing file?
  • kinekine Member Posts: 12,562
    That's question, may be I understand incorrectly, but "PDF file printing from NAV" is not exactly explaining what you want to do... :-)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • laks84laks84 Member Posts: 4
    Hi Kine,

    Thank you for your response,But SAVEASPDF is the report option.My requirement is,my record gives the file path which already exist in the system.
    when I click on the print button on my page,that particular file shoud get open and print.
    Please suggest me.

    Regards
    Laks84.
  • kinekine Member Posts: 12,562
    Ok, than you can try to trigger "Print" command for associated application. Because you can use .net libraries, it should be easy. Look e.g. there: http://stackoverflow.com/questions/2736 ... in-c-sharp
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.