I have a web application in ASP.NET and c#. Is it possible to print in a particular printer attached to server for all print button click? Ie, If one clicks print button on client machine, the print is taken on the printer attached with the server.
I'm developing an application in which user can decide if he wants to print something now or at some other time. So the idea is for user to click print and say now or determine the time when the document will be printed (without any further user inputs). I don't know what is the best way in asp.net mvc to this. Is there any way to print html in this way or do i have to convert that html in some other format and save it in database?
have C#.net address book project. As the part of project, I have to print address label.Address is taken from database, I have to print and printing preview, and printer settings from web page.I am new one in .net.
I have a webpage that activates a print job on a printer. This works in the localhost environment but does not work when the application is deployed to the webserver. I'm using the PrintDocument class from the .net System.Drawing.Print namespace. I'm now assuming the printer has to be available to the application on the remote server?
PrintDocument pd = new PrintDocument(); PaperSource ps = new PaperSource(); pd.DefaultPageSettings.PaperSize = new System.Drawing.Printing.PaperSize("Custom", 1180, 850); pd.PrintPage += new PrintPageEventHandler (this.pd_PrintPage); // Set your printer's name. Obtain from // System's Printer Dialog Box. pd.PrinterSettings.PrinterName = "Okidata ML 321 Turbo/D (IBM)"; //PrintPreviewDialog dlgPrintPvw = new PrintPreviewDialog(); //dlgPrintPvw.Document = pd; //dlgPrintPvw.Focus(); //dlgPrintPvw.ShowDialog(); pd.Print();
I wrote an ActiveX control using .net Framework 2.0 WMI to extract user's printer property. In my test environment I had to install .net framework and use the configuration tool to change the security zone to full trust. Would I have to do the same manually on all client machines? It would be fine if all client has to do is click "yes" to install an ActiveX but another if they actually have to run configuration steps themselves to change the trust level. If the client can't do it without running a manual setup I would need to create classic none .net ActiveX control to do the same thing. Can I use VS 2008 to create none .net ActiveX controls? How do I exact printer property without WMI?
I have an ASP.NET application where user is Anonymous when he connects to website. Also I have a printing server inside network. I want to let this user to print to the network printer.
In order to print I have to use File.Copy command. When I do this I get "Access denied". So I tried to impersonate the user with credentials of user that is inside domain and has the rights to print to that specific printer.
The problem is this user has to be Administrator, and I cannot let him be the Administrator. When this user is not Administrator then the printing is not working ("Access denied").
I tried to use Network Credentials but I don't know how to set credentials to command File.Copy. This command doesn't have any extensions or overloading for credentials.
I am using third party component for printing purposes (Combit list and label). There is dll which has function for printing. (means it suppresses the print dialgue box and have information embedded in a file about the printer location). The printer is shared printer and attached to machine which is different from the development machine. Now the printing from this printer works fine during debugging. But when I publish the pages in virtual directory and then executing the application does not print. (pages are also published on the development machine).