xtrareports-404375-report-designer-for-visual-studio-report-file-formats-cs-vb-and-vsrepx.md
When you add a new report to a Visual Studio project, you can choose the DevExpress Report item in the Add New Item dialog:
If you choose the DevExpress Report item, the designer serializes the report in the following files:
The CS/VB file format is the recommended format for report classes in a Visual Studio project.
The VSREPX file format is a legacy format that was used for report serialization in the initial development stages of the Report Designer for .NET/.NET Core. You can choose the DevExpress Report (.vsrepx) item if you want to add a new report to the project that already contains reports stored in .vsrepx files. If you choose this item, the designer serializes the report to the following files:
The following specifics apply to the .vsrepx file format:
The .vsrepx file format is the only format available for report serialization for .NET/.NET Core projects created in Visual Studio 2017.
You cannot use report inheritance if you store a report in a *.vsrepx file. Convert your *.vsrepx file to a *.cs file if you want to inherit from a *.vsrepx report. Refer to the following section for instructions: Convert a VSREPX File to a CS File.
*.vsrepx files should not be used as *.repx files. If you pass a *.vsrepx file to a report’s LoadLayoutFromXml method, the following exception occurs:
Open your project in Visual Studio and double-click a *.vsrepx file to invoke the Report Designer.
Save the report to a *.repx file.
Add a new blank *.cs report to your project.
Import the saved *.repx file to the new *.cs report.
If your report stored in a *.vsrepx file contains custom code, copy this code to the new *.cs report.