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
Jasheer
NA
11
632
How to print XAML multiple pages in silver light
Mar 20 2017 1:55 AM
Hi,
I want to print a user control, one user control contain multiple pages
I found many solution for PrintDocument in Silverlight but it print only first page .
My code is like,
void btnPrint_Click(object sender, RoutedEventArgs e)
{
PrintDocument pd = new PrintDocument();
pd.PrintPage += new System.EventHandler<PrintPageEventArgs>(pd_PrintPage);
pd.Print("Print Screen Content");
}
void pd_PrintPage(object sender,PrintPageEventArgs e)
{
e.PageVisual = scrollViewer2;
e.HasMorePages = true;
}
When i add e.HasMorePages = true that time it will going to infinite loop and does not print.
How to print a multiple pages. Please help
Reply
Answers (
2
)
Registration Form Display mobile device using bootstrap
Hw cn insert commt,if txtbx btn r in datalist