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
Manoj Savalia
NA
205
0
How to print multiple page in silverlight?
Aug 13 2012 1:03 AM
Hi,
I am working in silverlight and i have one Grid with many Rows.
In My Grid Row there are many control for display purpose.
Now i want to print this Grid with all row.
I found many solution for PrintDocument in Silverlight but it print only first page multiple time.
My code is like,
void btnPrint_Click(object sender, RoutedEventArgs e)
{
PrintDocument pd = new PrintDocument();
pd.PrintPage += new EventHandler<PrintPageEventArgs>(pd_PrintPage);
pages.Add(grdMain); pd.Print("Title1");
}
void pd_PrintPage(object sender,PrintPageEventArgs e)
{
e.PageVisual = grdMain; e.HasMorePages = true;
}
When i add e.HasMorePages = true that time it will going to infinite loop and does not print.
Please help me...
Reply
Answers (
2
)
Problem in updating password field in C# form in SQL db via code in C#.net?
How to make redirect in Metro applications using javascript