You can have a dropdown allowing the user to choose the printer and then based on the selected value set the PrintOptions.PrinterName in the code-behind file - in the print button's click event..
protected void btnPrint_Click(object sender, EventArgs e)
if (ddlPrinter.SelectedValue == "S")//Printer 1
myReportDocument.PrintOptions.PrinterName = @"\\my-domain\AAA-HP9050-P1";
else if (ddlPrinter.SelectedValue == "A")//Printer 2
myReportDocument.PrintOptions.PrinterName = @"\\another\OOO-hp4250-p2";
I got a problem with my application. I use C# to develop a editor using webBrowser.
Everytime I drag an image from Window Explorer or something else into my editor, the dialog appears and asks me to save my current work so I can't insert a picture into my editor unless I save my work.
Can anyone tell me how to insert an image into the editor? So that I can have as many images as I want. At this time, I just have one image at a time in my editor.
I am Gopal. I am using VS.NET 3.5. I want to show an image on crystal report using the image path which is in the database. I am using the OLE object. I don't know how to link OLE object and the my database table.Can anyone help me in to do this. I have very urgent requirement to do this. Please help me.....
I am just saving the path of the image in the database. I want to show the image dynamically on the report. If you knows about this please help. I saw one article that he is using OLE object to show the image...
I don't know how to link both of these. If you knows tell me
Hi i'm new here. Can anyone tell or just guide how to create a new browser rather than just using activeX controls. I dont know weather its possible or not, but i would really like to know. Can we develop in C#?
Nah. that was one computer model, five instances. Now we have seen dozens of web browser offerings, millions of instances, and we aren't satisfied yet (and never will). And we still have to scroll to see models 6 - 12.
You are speaking nonsense. ActiveX controls can be used in a webbrowser, they are not webbrowsers themselves. Unless you are meaning the old VB ActiveX controls used in a WinForm app. In which case you need to realize that technology died long ago.
but the point is. If i develop using web browser in .net, dont u think it wil be similar to IE, even the error exceptions are like ie.. i thought of doing it this way but my bro said that i'm a cheater...