REPORT.RUN(REPORT::"Inventory - List",FALSE,TRUE);The codeunit has been added to the Web Service table with a name of TestReport and the Published field set to TRUE.
using System; using System.Collections.Generic; using System.Text; namespace TestReport { using WebService; class Program { static void Main(string[] args) { TestReport rpt = new TestReport(); rpt.UseDefaultCredentials = true; rpt.Url = "http://localhost:7047/DynamicsNAV/WS/CRONUS_International_Ltd/Codeunit/TestReport"; rpt.RunReport(); } } }Running the application in Visual Studio gives an error - "Callback functions are not allowed."
Comments
go to the report properties and set ShowPrintStatus to No
and check chapter 5, page 33
Try to set the Report to "processing only"..
But to pick that one up: processing only doesn't work because then it wouldn't print. If you want to print you can't set this property to true.
The only solution i know to do this is to save the report as pdf and use a proxy application to print that pdf with a pdf reader (Proxy application may not be needed if you use a domain account other then Network Service for the webservice-service).
If you are not aware of, it's not possible (or atleast not easy and not recomended) to add printers to "Network Service" account (on which the service will run at default).