Generate the data schema from the command line

Generate the data schema for a C# application using the xsd.exe tool from the command line.

Before you begin:
  • Write a Genero Report Writer for C# report program.

To create a report, you must generate the data schema (.xsd) from the C# program source. You can generate it from the command line, giving you control of when it is generated. You can also generate it by including the command line options in the post compile rules, causing it to regenerate each time the program source is compiled.

  1. Open the report project open in Genero Studio for Report Writer, and set the configuration for .NET.
  2. Select Tools > Genero Tools > Genero Workplace Window.
    The Genero Workplace Window opens in the current project directory, with the correct environment set.
  3. Type "xsd.exe filename.exe /language:CS /type:OrderReportModel", where filename is the name of the Java report program source.
    The file filename.xsd is created. The data schema is ready for use.