473,473 Members | 1,954 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Problem with printreport

3 New Member
hi to all

im currently having problems with datareport in vb6..i assigned a recordset as a datareport's datasource..and telling it to be printed once a button is clicked..my problem is that when the report is printed,there seems to be a thread that is left running even if i already closed the main window of my program.

the code i used is below

Dim freturn As Long
Set PaySlip.DataSource = adoPrimaryRS
freturn = PaySlip.PrintReport(True, rptRangeFromTo, 1, 1)

these lines of codes are inside the click event of button...

i even tried building the exe file of my program..and when i tried it..task manager indicates that the program is still running even if all the windows are already closed.my vb6 ide shows the same scenario...with the start button unclickable even if the windows were already closed..

thanks for your help
Aug 29 '07 #1
2 1517
pureenhanoi
175 New Member
hi to all

im currently having problems with datareport in vb6..i assigned a recordset as a datareport's datasource..and telling it to be printed once a button is clicked..my problem is that when the report is printed,there seems to be a thread that is left running even if i already closed the main window of my program.

the code i used is below

Dim freturn As Long
Set PaySlip.DataSource = adoPrimaryRS
freturn = PaySlip.PrintReport(True, rptRangeFromTo, 1, 1)

these lines of codes are inside the click event of button...

i even tried building the exe file of my program..and when i tried it..task manager indicates that the program is still running even if all the windows are already closed.my vb6 ide shows the same scenario...with the start button unclickable even if the windows were already closed..

thanks for your help
Thats caused by some code that hide one or more form from your project. Try replacing someForm.Hide or Me.Hide by Unload someForm or Unload Me.
If this does not take effect, insert End statement into Form_Unload event of Main Form.
Aug 29 '07 #2
kutsaratinidor
3 New Member
Thats caused by some code that hide one or more form from your project. Try replacing someForm.Hide or Me.Hide by Unload someForm or Unload Me.
If this does not take effect, insert End statement into Form_Unload event of Main Form.
thanks pureenhanoi =)
i did what you advised me and that did the job...thanks a lot..
Sep 1 '07 #3

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

Similar topics

0
by: N.Naeem | last post by:
CrystalReport1.PrintReport returns 532 What error is this? thanks
2
by: Raul Medina | last post by:
I am trying to print the same visual basic report multiple times in my VB 6.0 application using the command <reportObject>.printReport False, rptRangeAllPages. The only thing that differs between...
0
by: AMDRIT | last post by:
We have a series of reports for a new application. As part of the process flow, these reports should be generated and printed at the conclusion of the transaction. Prior to this requirement, each...
0
by: Robrecht | last post by:
Hi I'm using following code to print a report. On Error Resume Next Dim rsetiket As ADODB.Recordset Dim conn As ADODB.Connection Set conn = New ADODB.Connection Set rsetiket = New...
1
by: Agnes | last post by:
In my program,(vb.net ) If I want to let the user choose "printer setup "directly, without preview, How can I do that ?? Thanks a lot
3
by: mutrus | last post by:
My data report print data in a different place than where it is supposed to. I have a sum function placed in the report footer section of the report however when the report is run the sum function is...
14
by: bubba832000 | last post by:
Is there anyone that can help me finish this project, I'm really frustrated with this project. The area that need to be implemented, im lost on what goes there. Also project is due 4/03/2007 which...
0
by: nico3334 | last post by:
I am creating a report that pulls values from a SQL table in visual basic. I have 3 main procedures. The Main procedure PrintInitialize CALLS 2 other procedures during its coding: GetTempData...
5
by: xirowei | last post by:
public class Result { private int countA = 0; private int countB = 0; private int statement; private boolean statusA = false; private boolean statusB = false; private int arrayA = new...
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.