473,387 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Data Reports

ANTY90
14
I want to print the bill report from within VB6.0 instead of Word. How to print any info using data reports?
Awaiting your reply.
Dec 30 '07 #1
4 1112
lotus18
866 512MB
Hi

Select Project > Add Data Report, then that's it
BTW, are you using DAO or ADO?

Rey Sean
Dec 31 '07 #2
Ali Rizwan
925 512MB
I want to print the bill report from within VB6.0 instead of Word. How to print any info using data reports?
Awaiting your reply.
Add a data report as lotus says.
Now add rptrlabels and rptrtextboxes.
You need a data environment to be add and connect it with your database connect your data report to data environment and connect labels and textboxes with commands added in data environment.
Now when you run the data report the bill was build automatically.

If you need any more help in databases of such type you can contact me using yahoo. You can find my id from my profile.

Regards

>> ALI <<
Dec 31 '07 #3
ANTY90
14
but how to connect a database to a data environment
it would be of great help if u give an example with a little coding
Jan 1 '08 #4
werks
220 100+
Happy New Year..

Try this..

frmPreview

Expand|Select|Wrap|Line Numbers
  1. Private Sub chPreview_Click()
  2.      rptBookreport.Show
  3. End Sub
Now add this code to your Datareport..

rptBookReport

Expand|Select|Wrap|Line Numbers
  1. Option Explicit
  2. Dim adoReport As New ADODB.Recordset
  3. Private Sub DataReport_Initialize()
  4.      Set adoReport = New ADODB.Recordset
  5.      adoReport.Open "SELECT * FROM tblBooks", CoNN,  adOpenStatic, adLockReadOnly
  6.      Set rptBookreport.DataSource = adoReport
  7. End Sub
  8.  
  9. Private Sub DataReport_Terminate()
  10.      adoReport.Close
  11.      Set adoReport = Nothing
  12. End Sub
Hope this help you..
Jan 1 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Alex | last post by:
Hi all, I've seen this noted in many posts, but nothing I've checked out gives me any clue on how to do this. Basically as my topic says, I have a DTS and I simply need to export some data...
7
by: Paolo | last post by:
I know I should not be doing this, but I find it very useful. I have a database in Access which stores data for a small company. Sometimes we need to add similar information to different tables....
1
by: Queen's | last post by:
I have a database I'm working with which has tables and reports. The controls in the reports are bound to data, but I'm at a loss to explain where the data is coming from. I have gone so far as to...
1
by: Sara Montgomery | last post by:
I have a database I'm working with which has tables and reports. The controls in the reports are bound to data, but I'm at a loss to explain where the data is coming from. I have gone so far as to...
1
by: warlord | last post by:
In order to save typing, I've borrowed the text from a post of nearly 12 months ago.....but the problem still exists. I've been banging my head all day with this, so I'm hoping someone has some...
2
by: Priyavenkat | last post by:
i am using VB 6.0, MS Access as backend and Crystal Reports 10 for reports. I connect data source to Crystal Reports 10 using ODBC dsn. It works correctly in my PC. When it is distributed to another...
5
by: ElTipo | last post by:
Hello People, I made a data base with secure wizard to provide to users a PID and Passwords. I need to extract data from Crystal Reports 7 in this data base but Crystal Reports send me a message...
1
by: babbles | last post by:
I have a problem about data reports. My project is to view reports monthly, yearly and daily and show the query on MShflexgrid and show the total income summary. I have already made my query on that...
10
by: giraffeboy | last post by:
Hi there, I'm having a problem with the Python db api, using MySQL. I've written a program with a GUI using wxPython, the GUI is contained in main.py which imports another module - reports.py....
6
by: Peter | last post by:
I have a WebService which returns a List of RunningReport class How do I read this XML data on the client side. How do I convert List<RunningReportfrom the WebService side to List<RunningReporton...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.