Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
755
How to print a document using ultraPrintDocument in window services.
posted

Hi,
 
Can anybody tell me How to print a document using window services.
The problem is Printpage event is not executing.

my code is like

UltraPrintDocument printDoc= new UltraPrintDocument();

printDoc.PrintPage += new PrintPageEventHandler(Print_Page);

 printDoc.Print();

 and here the event

 private void Print_Page(object sender, PrintPageEventArgs e)
 {
     //code here   

 }


i got from some source something like
the namespace is not supported for use within a Windows service or ASP.NET application or service. So what are the possible options ?

thanks in advance..

Parents
No Data
Reply Children