Skip to main content
Windward

Running the C++ Example

engine-wiki-logo.pngOverview

This example is implemented as a wrapper around the Windward Reports C# API and provides a C++ interface to users who do not use the Common Language Runtime (CLR).

Requirements

  • Windward .NET Engine
  • Catapult
    • Catapult is included with .NET Engine installation, and contains the sample itself
  • Visual Studio 2005

Video

Instructions

  1. Open Catapult. (Found under Start -> All Programs -> Windward Studios -> Windward Reports .NET Engine -> .Net Engine Help Launcher)
  2. In the Catapult menu, click the C++ tab.
  3. Click the Source Directory button.
  4. Go up one folder level to the folder “CPPCommandLineSample.”
  5. Run the file copy_dlls.bat.
  6. Close the source folder.
  7. Click the Project File button.
  8. Right click on the RunReportCPP project in the solution explorer and select Properties.
  9. Click Configuration Properties -> Debugging.
  10. In the Command Arguments field, enter “Template.rtf report.pdf –xml order.xml”
  11. Click OK.
  12. Select Release from the dropdown in the main toolbar.
  13. Click Build, Reubild Solution.
  14. Once the build has completed, click the run icon.
  15. When the code has completed running, press the enter key to exit the command prompt.

The report.pdf file can be found by returning to catapult and opening the source directory.

Run-Time Requirements

The following are required to be placed in the same folder as your executable file.

  1. Your compiled executable, let's call it app.exe.
  2. A configuration file that must be the name of the executable with a .config extension. If your executable's name is app.exe then the configuration file must be app.exe.config. The configuration file should include your Windward Reports license (modify the following snippet as required):

    [WindwardReports]
    [add key="license" value="---YOUR-LICENSE-KEY-GOES-HERE---"/]
    [/WindwardReports]

  3. WindwardReportsCPP.dll - the C++ wrapper.
  4. WindwardReportsAPI.dll and additional DLLs from the .NET reporting engine. This might be omitted if you have Windward Reports components registered in the global assembly cache (GAC).
  5. vjsnativ.dll - Microsoft Visual J# class library native implementation. You generally will need to copy this from C:\Windows\Microsoft.NET\Framework\v2.0.50727.
  • Was this article helpful?