Working with DataReport
Code below demonstrates how to work with DataReport. You will need:
1. DataEnvironment
2. DataEnvironment Command that receives
parameters.
3. DataReport with;
a. Detail section named "Section1"; and,
b. rptlabel named "lblCopy"
4. Form with a button. Code below should be put on click event.
Rate Working with DataReport
(14(14 Vote))
With UILetterDataReport 'DataReport Name
.DataMember = "cmdClaimsLetter" 'Name of the Command
Set .DataSource = UIDataEnvironment 'Name of the DataEnvironment
.Caption = "Letter for: SSN= " & strSSN ' Changing caption properties of the report
With .Sections("Section1").Controls 'Name of the detail section of the report.
.Item("lblCopy").Caption = "COPY" 'Set caption of the field
End With
.Refresh 'Refresh Report
End With
Working with DataReport Comments
No comments yet — be the first to post one!
Post a Comment