|
-
Jun 29th, 2000, 06:34 AM
#1
Thread Starter
Lively Member
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
-
Jun 30th, 2000, 10:36 AM
#2
Lively Member
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"
-
Jun 30th, 2000, 11:18 AM
#3
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|