hi all
i have problem to access the default printer using C# code.....
i am created the .Net Application for Bill Printing.
i have two Desktop PC connecting thru LAN. Named like x86 and x96 both have the individual defalult printer.
x86 machine have the .Net application.Run the application from this machine and click the print button then the bill was printing x86 machines default printer.
When i am trying to open the apllication from x96 machine using http://x86/ApplicationName/Pagename.aspx
now i can click the print button for bill printing.here is the problem rises......
the printing command goes to the x86 machine only (which one have the .Net applicaion)
its did not detect the local printer of x96 machine.
this is the problem.... Really i am struggle with this plz help me....
Note :
i wanna format printing option so only am using this code....
i dont wanna Java scripts " document.Print() " function.
am waiting for ur reply....
Regards
Srinivas.
C# Code
"
using System.Drawing.Printing;
private
{
}
String textToPrint = LaserGenerateBill(); //Calling function return String value
Font printFont =
e.Graphics.DrawString(textToPrint, printFont, Brushes.Black, 0, 0);
Margins xx=
PaperSize psize=