Results 1 to 3 of 3

Thread: Data report designer question

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Posts
    80

    Question

    Hi,

    Can the VB6 Data Report Designer run if it has no data source?

    What I'm trying to do is to display and then print a report with values that were entered and or calculated that are held in some text boxes on my main form.

    In the main form module this doesn't seem to work:

    rptMyReport.text1.text = txtName.text

    I get an object or method not defined error.

    Nor this in the Data Report Initialize event:

    text1.text = frmMain.txtName.text

    I get an object required error.

    I imagine I can write the data to a text file, but can the Data Report Designer use a text file as a data source? Hell, can the Crystal Report Component? If they can I'm having trouble figuring how to connect them.

    Thanks in advance for any help.

    Regards,
    Jack Vinitsky


  2. #2
    Lively Member Kersey's Avatar
    Join Date
    Jun 1999
    Location
    The Netherlands
    Posts
    101
    What is the purpose of all this ???

    don't set the textfield but the caption of a label !

    RptMY.Sections("ReportHeader")
    .Controls("lblTypOMyrpt").Caption = "This is working"

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Posts
    80
    Thanks for your help Kersey,

    I did the following which worked:
    rptMyReport.Sections("Section1").Controls.Item("Label1").Caption = strMyVariable

    All I want to do is to print out some data from the user form onto a report. I don't need to store it anywhere nor do I need the user to go back to it later.

    I still couldn't get this the data report to open without a data source, currently I'm using an OLE DB driver for an ODBC Text Driver connected to a bogus text file as my data source.

    Now if I can open this report without having a data source, I'll be all set.


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