Adds a new report/report layout.
| Visual Basic |
|---|
Public Function AddReportLayout( _
ByVal pIReportLayout As ReportLayout _
) As ReportLayoutParams |
- pIReportLayout
The data for the new report/report layout.
Contains the key (DocCode) of the new report/report layout.
For Crystal Reports, use this method to add a report (as a standalone report or as a report layout) by setting the fields Name, TypeCode, Author and Category of the ReportLayout object. Set Category to Crystal Reports and set TypeCode to either RCRI (for standalone report) or a document type (for report layouts).
For PLD report layouts, use this only to transfer report layouts from one company to another. When transferring a system layout, change the following properties before adding the layout to the destination company:
- Author: Change from System to a different name. If left unchanged, an exception is thrown.
- Editable: Change from NO to Yes to make the new layout editable.
- Name: Give the report layout a new name.
Do not change any other properties.
| Adding a PLD report layout (Visual Basic) | Copy Code | |
|---|---|---|
| ||