Tip of the Month (March 2002)
Launching Report CE® from eMbedded Visual Basic
You can launch a Report CE report from an embedded Visual Basic application by calling CreateProcess, a Windows CE Operating System API function. It's easy to do this. Just declare the Sub procedure and then call it.
To declare the Sub procedure (although this declaration spans multiple lines in this topic, it should all be on one line in your Visual Basic application):
(note the W at the end of the CreateProcessW).
To launch your report, just call the Sub procedure. The first argument is the Report CE executable, the second is the file pathname of the template to use (a .RCE file). You have to put in eight zeros for those eight unused parameters (the operating system requires them). If you have any command line switches, put them in the second argument (before the file pathname of the template).
(note the use of two double quotes to enclose "ABC Books" in double quotes).