PDA

Click to See Complete Forum and Search --> : To Use Datareport Directly


raajsoftwares
May 19th, 2008, 06:59 AM
Help me the method to print the contents in the form to DataReport without using DataEnvironment

Hack
May 19th, 2008, 08:04 AM
Moved to Reporting

wes4dbt
May 19th, 2008, 10:54 AM
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.

Datareport1.Sections("ReportHeader").Controls.Item("lblCompany").Caption = frmMain!txtName.Text
Datareport1.Show

alMubarmij
Nov 10th, 2009, 01:02 PM
I think he must use:frmMain.txtName.Text
instead of:frmMain!txtName.Text