Help me the method to print the contents in the form to DataReport without using DataEnvironment
Printable View
Help me the method to print the contents in the form to DataReport without using DataEnvironment
Moved to Reporting
You could just use the "PrintForm" method but if you want to use a DataReport then assign the values to the text boxes or labels at runtime.
Code:Datareport1.Sections("ReportHeader").Controls.Item("lblCompany").Caption = frmMain!txtName.Text
Datareport1.Show
I think he must use:instead of:Code:frmMain.txtName.Text
Code:frmMain!txtName.Text