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..
Hello Saroj,
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.
Could you please try to attach if possible a small sample project reproducing the above mentioned issue, I will be happy to take a look at it.
Hello Boris,
Thanks for reply.
i go through your sample application.and its working fine for windows application.but my question is when i'm using this in window service,it not working .please suggest me.
I tried this and it always works fine for me so I attached my sample to this post for you. Please review it and feel free to let me know if I misunderstood you or if you have any other questions.