Options

printing reports via web services

sbillysbilly Member Posts: 231
edited 2011-06-21 in NAV Three Tier
I created a web page on visual studio that handle sales orders using web services. I want to add a button that print the sales order from this page.
Who have an idea about printing reports via web services.
Thanks

Comments

  • Options
    kinekine Member Posts: 12,562
    You cannot print it directly, you can only save it e.g. into PDF, download it and print from your application.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    sbillysbilly Member Posts: 231
    have u a tutorial?
  • Options
    deV.chdeV.ch Member Posts: 543
    You can print via webservice! But only with a workaround, have a look at this:

    http://www.mibuso.com/forum/viewtopic.php?f=32&t=46507
  • Options
    sbillysbilly Member Posts: 231
    Hi dev.ch, thanks for ur replay :)
    deV.ch wrote:
    You can print via webservice! But only with a workaround, have a look at this:

    http://www.mibuso.com/forum/viewtopic.php?f=32&t=46507

    I wrote this codeunit:
    printpdf()
    
    filename := 'C:\PdfDocuments\order.pdf';
    ReportNbre := 70000;
    REPORT.SAVEASPDF(ReportNbre,filename);
    
    then what shall I do to print it from WS??
  • Options
    deV.chdeV.ch Member Posts: 543
    Read the posts in the link i provided. U need a PDF application to print the PDF. I use Foxit Reader because its very fast (a lot faster then adobe acrobat).
  • Options
    sbillysbilly Member Posts: 231
    tell me if I'm wrong :
    I must install foxit reader then I must create a codeunit with the fuction u provided.
    And I call it from ws, that's all??
  • Options
    deV.chdeV.ch Member Posts: 543
    Yes thats all. The function must run foxit reader with the correct parameters (filepath to the pdf file you created with SAVEASPDF, and the desired printer)
  • Options
    sbillysbilly Member Posts: 231
    =D> Thanks

    deV.ch wrote:
    Yes thats all. The function must run foxit reader with the correct parameters (filepath to the pdf file you created with SAVEASPDF, and the desired printer)
  • Options
    sbillysbilly Member Posts: 231
    Please telle what about "R2's DotNet Interop" I need it??
  • Options
    sbillysbilly Member Posts: 231
    I want to ask u about startprocess function, what's the data type of "process" and how can I set it
  • Options
    abhaysharma27abhaysharma27 Member Posts: 5
    Hi,
    I have called Reports using Web Services in C#. But I am not getting how to call Request Form Filters using Web Services.
    Any help will be highly appreciated.

    Thanks,
    Abhay Sharma
Sign In or Register to comment.