• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 192
  • Last Modified:

Data Report without any data

Is there a way to use Data Report in VB to create a form and then have the VB program fill in the fields.  The fields on the form would be unbound text fields.  I am trying to print checks but don't want to tie it to all database records.  An example would be appreciated.
0
dorinda
Asked:
dorinda
  • 3
  • 3
  • 2
1 Solution
 
bobbit31Commented:
you could have a dummy mdb file and set that as your datasource.

to have vb fill in your fields you can do something like this:

put a label named label1 in section1.
then you can do:

DataReport1.Sections("section1").Controls("label1").Caption = "Hello World"

Datareport1.show
0
 
Éric MoreauSenior .Net ConsultantCommented:
0
 
dorindaAuthor Commented:
I really don't want to have a database tied to it...is this possible?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
bobbit31Commented:
i've been looking around and it seems that's it's not.
emoreau's link just shows how to bind the report at runtime
0
 
Éric MoreauSenior .Net ConsultantCommented:
you don't need a database to have a recordset (when using ADO). You can create an in-memory recordset. You will then be able to bind your report to this recordset.
0
 
bobbit31Commented:
emoreau is correct, you can create a dummy recordset through code and bind your datareport to it at runtime.

need an example?
0
 
dorindaAuthor Commented:
Could anyone provide an example of a dummy recordset and how I would bind my datareport to it at runtime....I guess I am not visualizing it.
0
 
Éric MoreauSenior .Net ConsultantCommented:
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now