473,398 Members | 2,188 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,398 software developers and data experts.

Include listview in datareport

19
hello.. help me please. i have a problem.... here it is...
i have a listview of services and i want all of those list to be in a datareport....help me how to do that please!.... thankssss... reply people asap
Mar 19 '08 #1
5 2993
lotus18
866 512MB
hello.. help me please. i have a problem.... here it is...
i have a listview of services and i want all of those list to be in a datareport....help me how to do that please!.... thankssss... reply people asap
Post some of your codes here. I think the easiest way to this is by passing a sql query for generating report (if you're using a database in populating the listview items).

Rey Sean
Mar 20 '08 #2
obkfixx
19
Post some of your codes here. I think the easiest way to this is by passing a sql query for generating report (if you're using a database in populating the listview items).

Rey Sean


i dont have any codes yet.. i dont have any idea... haaay
Mar 20 '08 #3
Killer42
8,435 Expert 8TB
I've changed the title of this discussion thread to something more descriptive. Please let me know if I've misinterpreted the question.

Moderator
Mar 20 '08 #4
debasisdas
8,127 Expert 4TB
Do not expect us to write code for you.

Post what you have tried so far for further discussion on this topic.
Mar 20 '08 #5
obkfixx
19
Do not expect us to write code for you.

Post what you have tried so far for further discussion on this topic.

here are the code for displaying receipt.. but the listview here is not included since i dont know how....

Expand|Select|Wrap|Line Numbers
  1. Set rsservice = condb.Execute("select custid from service where custid = '" & custID & "'")
  2. If rsservice.RecordCount > 0 Then
  3.   Set rsreport = condb.Execute("SELECT statementofaccount.DateDone,statementofaccount.ORNum,statementofaccount.TotalAmt,billcode.Amount as 'bilAmount',service.Amount,costumer.CostumerName From billcode Inner Join costumer Inner Join service Inner Join statementofaccount ON statementofaccount.CustId = costumer.CustID AND statementofaccount.CustId = billcode.CustID AND statementofaccount.CustId = service.CustId Where costumer.Custid = '" & custID & "' and  service.servicecode='100'")
  4.   Set DataReport_receipt_withservice.DataSource = rsreport
  5.   DataReport_receipt_withservice.Refresh
  6.   DataReport_receipt_withservice.Show
  7. Else
  8.   Set rsreport = condb.Execute("SELECT statementofaccount.DateDone,statementofaccount.ORNum,statementofaccount.TotalAmt,billcode.Amount as 'bilAmount',costumer.CostumerName From billcode Inner Join costumer Inner Join statementofaccount ON statementofaccount.CustId = costumer.CustID AND statementofaccount.CustId = billcode.CustID  Where costumer.Custid = '" & custID & "' ")
  9.   Set DataReport_receipt_noservice.DataSource = rsreport
  10.   DataReport_receipt_noservice.Refresh
  11.   DataReport_receipt_noservice.Show
  12. End If
Mar 20 '08 #6

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

Similar topics

2
by: berthelot samuel | last post by:
Hi everyone, I am currently trying to write a report based on a View of SQL Server. Basically, I have 3 tables : Hardware, SoftwareInstalled and Software with SoftwareInstalled that keeps track of...
1
by: Speed | last post by:
How to write informations from database in Page Header section like in Detal section of DataReport?
5
by: anoopgopal007 | last post by:
Hi, I am using vb6 and datareport. I am updating the tables whle the program running. But the datareport doesnot show the updated information. Its always shows the previous value. But...
6
by: pramodrepaka | last post by:
hi this is pramod i am facing a small problem Private Sub Command_Click() Dim a As String a = InputBox("enter empno") If rs.State = 1 Then rs.Close rs.Open "select * from microbiology...
0
by: nishjee | last post by:
Hello friends, i need visual basic 6.0 code to export a datareport to html other than the defult option coming with datareport. I need this very urgently because when i am exporting the datareport...
1
by: Tark Siala | last post by:
Hi I have ListView contain data, and i want print this listview. i know i can do that by using Datareport and Crystal Report, but i need simple way to print this data. any ony have good idea? ...
6
by: aaronv | last post by:
Hi vb programmers. I would just like to know if it's possible to directly print what I see on my listview or put what I see on my listview to a datareport. I am having a problem with printing...
9
smartchap
by: smartchap | last post by:
I have a table having 3 fields viz. SNo, FName and LName. The table has 10 records having SNo from 1 to 10. In DataReport I have 3 labels and 3 textboxes. I want to display all records from 1 to 10...
1
by: MaryKJolly | last post by:
I got this sample project from a website. But there is some syntax error in the statement which contains the CDate function. I can't detect the error? Can enybody help me? SUMMARY This article...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.