2 Replies - 1154 Views - Last Post: 05 August 2009 - 06:53 AM Rate Topic: -----

#1 shahar786  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 04-August 09

vb.net printing

Post icon  Posted 04 August 2009 - 06:54 AM

hi to all,


i have a printing class in vb.net .
when i print the document as shown in screen it shows a message like
these.." printing document...." but the problem is that , if when we press a
key accidently when showing these message the system will got stuck.
can i avoid these message,

i use these class for a bill print , the values from the grid view .
i just write my printing code here

 Dim pd1 As PrintDialog = New PrintDialog
	Dim WithEvents printdoc As PrintDocument
			pd1.AllowPrintToFile = True
			pd1.PrinterSettings = New PrinterSettings
			Me.printdoc = New PrintDocument
			Me.printdoc.Print()



printdoc is my printing class and design of the bill

Is This A Good Question/Topic? 0
  • +

Replies To: vb.net printing

#2 Core  Icon User is offline

  • using System.Linq;
  • member icon

Reputation: 774
  • View blog
  • Posts: 5,097
  • Joined: 08-December 08

Re: vb.net printing

Posted 04 August 2009 - 07:28 AM

Is the system non-responsive only for the duration of printing or it is becoming completely frozen?

You might want to consider separating the printing process in a different thread, so the program will remain reposive to user input.
Was This Post Helpful? 0
  • +
  • -

#3 shahar786  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 04-August 09

Re: vb.net printing

Posted 05 August 2009 - 06:53 AM

View PostCore, on 4 Aug, 2009 - 06:28 AM, said:

Is the system non-responsive only for the duration of printing or it is becoming completely frozen?

You might want to consider separating the printing process in a different thread, so the program will remain reposive to user input.




non responsive only for the duration of printing, it occures only we press another key.
also i want to avoid the mmessage showing while printing.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1