setProfile

setProfile(profileName: String);

The setProfile method of the JadeReportWriterReport class sets the name of the report profile to use when running the report. If the name specified in the profileName parameter is not valid, the current profile is used.

Use the getProfiles method to return an array of the profile names that can be used when the report is run.

The code fragment in the following example shows the use of the setProfile method.

intIndex := lstProfiles.listIndex;
if lstProfiles.listIndex = -1 and lstProfiles.listCount > 0 then
    intIndex := 1;
endif;
if intIndex > 0 then
    strProfile := lstProfiles.itemText[intIndex];
    jrep.setProfile(strProfile);
endif;