Current location: Hot Scripts Forums » Programming Languages » Visual Basic » Printing Event?


Printing Event?

Reply
  #1 (permalink)  
Old 07-26-04, 03:35 PM
Naresh Rohra Naresh Rohra is offline
Newbie Coder
 
Join Date: Jun 2004
Location: India
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Printing Event?

I had developed an application for Grocery Shop in which I have used DataReport for printing the Receipt. In which after showing the report (receipt) the updations are made in database. But, I want to set a condition that if user does not print the report the bill should not be updated. Hence I need some event to know that gets activated when user clicks on print button or when printing is complete or like that so I can set a flag for updation.

Thanks.
Naresh Rohra.
Reply With Quote
  #2 (permalink)  
Old 09-24-04, 06:35 AM
Keithuk's Avatar
Keithuk Keithuk is offline
Newbie Coder
 
Join Date: Sep 2004
Location: Staffordshire, England
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
Just make a PrintReport flag.

Dim PrintReport As Boolean

Private Sub Form_Unload(Cancel As Integer)

If PrintReport = True then
SaveReport
End If

End Sub

Private Sub mnuPrint_Click()

PrintReport = True
Reply With Quote
  #3 (permalink)  
Old 09-24-04, 04:15 PM
Naresh Rohra Naresh Rohra is offline
Newbie Coder
 
Join Date: Jun 2004
Location: India
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks but i already got it!

Thanks there,
But ur idea was already tried by me in fact with QueryUnlaod Event. But even though when i print the page the report doesn't closes. So, after printing also i have to close the window.

The actual event to use is 'Asynprogression'. When documetn is being printed this event gets trigered for some reason. I wonder y ... well who cares i got my problem solved

Thanks.
Naresh
__________________
My Home Page
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
event registration script spear1976 Job Offers & Assistance 14 01-02-06 10:09 AM
Automated Digital Printing System amberpro Job Offers & Assistance 1 07-10-04 06:22 PM
image's onload event behaves strangely davidklonski JavaScript 0 07-07-04 11:20 AM
essential business & printing supplies digital print General Advertisements 0 03-29-04 06:05 AM
Need one MouseOver event to change TWO images AccessGuy JavaScript 5 12-13-03 03:40 AM


All times are GMT -5. The time now is 09:55 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.