Configure Genero Studio for C#

Follow this procedure to complete the C# configuration.

Before you begin:

  • You have installed and licensed Genero Report Writer.
  • Download and install Microsoft® SDK. You can download the packages at http://msdn.microsoft.com/en-us/en-en/windows/desktop/aa904949.aspx. Make a note of where it is installed; you will need to provide the directory path as part of this configuration.
    Note: When installing the Microsoft Windows® SDK (.NET) on Windows 7, you may see the "Installation Failed" dialog. To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the Windows 7 SDK. For more information, see http://support.microsoft.com/en-us/kb/2717426.

To configure for C#, set the value of the FrameworkDir and WindowsSdkDirenvironment variables, found in the Microsoft .NET environment set, to your local Microsoft .NET Framework directory and Windows SDK directory, respectively.

  1. Select Tools >> Genero Configurations.
  2. Under the Environment Sets section, select Microsoft .NET.
    The environment variable FrameworkDir and WindowsSdkDir are listed under the Environment Variables section.
  3. Select the FrameworkDir entry.
  4. Click the Edit icon to open the Environment Variable dialog.
  5. Set Value to your local directory for the Microsoft .NET Framework.
    The Microsoft.NET Framework should already be installed in C:\Windows\Microsoft.NET\Framework. Set the variable to the path to the latest version of the Framework, like this: C:\Windows\Microsoft.NET\Framework\v4.0.30319, then click OK.
    Note: 64-bit systems will have both a Framework and Framework64 directory. Use Framework64 for 64-bit systems.
    Tip: The Type combobox tells you what type of value is expected.
  6. Select the WindowsSdkDir entry.
  7. Click the Edit icon to open the Environment Variable dialog.
  8. Set Value to the path of the installed Windows SDK's NETFX X.X Tools directory, such as one of these:
    • C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\NETFX 4.0 Tools (Windows 7 example)
    • C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 Tools (Windows 10 example)

    Do not forget to include the "\bin\NETFX X.X Tools" part of the path, as it is mandatory! Once the directory is specified, click OK.

    Tip: The Type combobox tells you what type of value is expected.
  9. Click OK until all dialogs close.
  10. Run the OrderReportCSharp demo to verify your configuration.
    See Run the .NET report demo for details on running the demo.