Results 1 to 4 of 4

Thread: To Use Datareport Directly

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2008
    Posts
    5

    To Use Datareport Directly

    Help me the method to print the contents in the form to DataReport without using DataEnvironment

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: To Use Datareport Directly

    Moved to Reporting

  3. #3
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,510

    Re: To Use Datareport Directly

    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

  4. #4
    Member
    Join Date
    May 2009
    Posts
    55

    Re: To Use Datareport Directly

    I think he must use:
    Code:
    frmMain.txtName.Text
    instead of:
    Code:
    frmMain!txtName.Text
    Last edited by alMubarmij; Nov 10th, 2009 at 02:09 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width