web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

Auto PDF Printing from a Scheduled Task.

(0) ShareShare
ReportReport
Posted on by

Afternoon all,

I am running into a problem with auto printing PDFs from Dynamics SL.  The application I have written runs as expected when executed normally ( double clicked ), PDFs are printed, everything is great.  When I attempt to run the app from a scheduled task, ROI.exe is erroring out with a FileNotFoundException.    Below is my code for the starting of the process ( C# ).  The location that I am printing to is a network location... what I can't figure out for the life of me is why it would run perfectly fine one way, and not the other.

//Save the PDF
Process myProcess = new Process();
myProcess.StartInfo.UseShellExecute = true;
myProcess.StartInfo.FileName = slDir + "ROI.exe";
myProcess.StartInfo.Arguments = "0 "
+ report.r.report.Trim() + "/run "
+ report.r.report.Trim() + "/format "
+ report.r.whereclause.Trim() + "/where "
+ "0/expformat "
+ @report.r.exportdirectory.Trim() + "Test\\" + pdfFileName + "/expfilename";

myProcess.StartInfo.CreateNoWindow = false;
myProcess.Start();

*This post is locked for comments

I have the same question (0)
  • Apps Mexico Profile Picture
    1,090 on at

    Hi,

    Did you try do the same thing but with a vbtools screen, using the SL SDK?

    You can use the vbtools functions to call the ROI.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans