TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Saroj kumar
NA
89
2.1k
Printer setting programmatically when use Webbrowser control
Aug 18 2020 1:06 AM
I use given code for printing. My printing code work properly .now i want to add printer setting code and my html code go on printer for print also manage size of page.
please help me .
public String stb { get; set; }
if (stb != null)
{
WebBrowser webBrowserForPrinting = new WebBrowser();
webBrowserForPrinting.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(PrintDocument);
webBrowserForPrinting.DocumentText = stb;
}
private void PrintDocument(object sender, WebBrowserDocumentCompletedEventArgs e)
{
((WebBrowser)sender).Print();
((WebBrowser)sender).Dispose();
}
Reply
Answers (
0
)
Binding picture box with column with oracle
Upload PDF to AxacroPDF from Mysql