?
Solved

Data Report without any data

Posted on 2002-04-12
8
Medium Priority
?
185 Views
Last Modified: 2010-05-03
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
Comment
Question by:dorinda
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
8 Comments
 
LVL 18

Expert Comment

by:bobbit31
ID: 6937309
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
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 6937372
0
 

Author Comment

by:dorinda
ID: 6937462
I really don't want to have a database tied to it...is this possible?
0
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!

 
LVL 18

Expert Comment

by:bobbit31
ID: 6937479
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
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 6937487
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
 
LVL 18

Expert Comment

by:bobbit31
ID: 6937505
emoreau is correct, you can create a dummy recordset through code and bind your datareport to it at runtime.

need an example?
0
 

Author Comment

by:dorinda
ID: 6942779
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
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 800 total points
ID: 6943018
0

Featured Post

Introducing Priority Question

Increase expert visibility of your issues by participating in Priority Question, our latest feature for Premium and Team Account holders. Adjust the priority of your question to get emergent issues in front of subject-matter experts for help when you need it most.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question