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 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.
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.