Classic Report using a Codeunit Web Service

bbenderbbender Member Posts: 28
edited 2010-04-22 in NAV Three Tier
Is there a way to print a report via a Codeunit Web Service?
I saw the sample where it takes a Reporting Service Report and save as PDF, but we want to actually print the report out.

Thanks,
Bruce Bender
Thank you,

Bruce Bender
Solution Developer
BruceB@SolutionDynamics.net

Solution Dynamics, Inc.

Comments

  • kinekine Member Posts: 12,562
    And how the web service could know on which printer you want to print it? :-)

    Did you tried it? Just instead the saving it as PDF, try to print it... it is easy test...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • jreynoldsjreynolds Member Posts: 175
    Printing definitely does not work form a web service.

    SAVEASPDF will work but only if the RDLC has been defined; this does not work for rendering with the classic client.

    I use SAVEASPDF and then a command line tool to print the PDF (which can executed with the RUN method of Windows Script Host).
  • bbenderbbender Member Posts: 28
    We set the report not to use request form and that it would use the system printer.
    or we were going to set the Report in Printer Selection to go to a specific printer.

    We tried the first way and in the App that calls the Web Service, it comes back with an error.
    I could give exact error, but the guy that the software is on, is not in yet.

    This is why I posted something, we've tried it and it did not work.
    We were wondering if their is a work around or a bug with Web Services.

    This is NAV 2009 SP1, so it has the latest changes to the Web Services...

    Thanks,
    Bruce
    Thank you,

    Bruce Bender
    Solution Developer
    BruceB@SolutionDynamics.net

    Solution Dynamics, Inc.
  • bbenderbbender Member Posts: 28
    Which command line do you use to print the PDF?

    I think the report is setup as a RDLC report.

    Thanks,
    Bruce
    Thank you,

    Bruce Bender
    Solution Developer
    BruceB@SolutionDynamics.net

    Solution Dynamics, Inc.
  • jreynoldsjreynolds Member Posts: 175
    bbender wrote:
    Which command line do you use to print the PDF?
    Just Google "print pdf command line" and you will get some choices.
Sign In or Register to comment.