Results 1 to 6 of 6

Thread: Crystal Reports and VB.Net

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2002
    Location
    Sharpsville, PA
    Posts
    135

    Question 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

  2. #2
    Member
    Join Date
    Sep 2002
    Posts
    32
    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.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2002
    Location
    Sharpsville, PA
    Posts
    135

    Question 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

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jan 2002
    Location
    Sharpsville, PA
    Posts
    135

    Question 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

  5. #5
    Member
    Join Date
    May 2001
    Posts
    39
    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.

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Jan 2002
    Location
    Sharpsville, PA
    Posts
    135

    Angry 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
  •  



Click Here to Expand Forum to Full Width