|
-
Sep 20th, 2002, 08:53 AM
#1
Thread Starter
Addicted Member
Crystal Reports and VB.Net
Hello All
I created a Crystal Report in VB.Net. But I do not know the
commands to execute it from a push button on a Vb.Net form
in the same project. Anybody have the steps?
Thanks
Tom
-
Sep 20th, 2002, 08:58 AM
#2
Member
Hi,
As far as I know you can't just preview it like you could in vb 6 you have to use the control the crystalreportviewer, place it on a form and set the properties to your report.
-
Sep 20th, 2002, 09:14 AM
#3
Thread Starter
Addicted Member
Sucess?
Ok,
I got the crystal viewer on and it brings up the report,
But all I get is the field names on the page header. The detail
data does not showup. I do not have an data selection criteria,
it is supposed to be just a simple dump of the contents of the table.
What am I missing?
Thanks
Tom
-
Sep 20th, 2002, 09:29 AM
#4
Thread Starter
Addicted Member
Sucess?
Ok,
I got the crystal viewer on and it brings up the report,
But all I get is the field names on the page header. The detail
data does not showup. I do not have an data selection criteria,
it is supposed to be just a simple dump of the contents of the table.
What am I missing?
Thanks
Tom
-
Sep 20th, 2002, 10:15 AM
#5
Member
Hi
I don´t know the model of report you have created.
But try fill your report with a datasource like a ADO recordset or other, example:
YourReport.Database.Tables(1).SetDataSource(YourRecordset)
Is something like this.
-
Sep 20th, 2002, 11:25 AM
#6
Thread Starter
Addicted Member
Argh!
It is preprinted form type of report. I am designing this report GUI style and am not hardcoding datasources like you suggest. I don't
know where to put such a thing. However I changed my data source to the "current connection" version of the table. Now when I run it, it prompts for a login. Strange thing is it asks for server,database,user, password. I can't get thru! My original connection to the table was using the MS OLE DB for Oracle provider in which I only need server name, user and password; where the server name is actually the database schema, NOT the name of the actual server computer. So it looks to me when I get this login the system is looking for a MS SQL connection instead.
Man I am confused!
TOm
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
|