Subscribe to Subscribers
Talk to Webmaster Tony John

Online Members

More...

Forums » .NET » Silverlight »

How to print multiple page in silverlight?


Posted Date: 07 Aug 2012      Posted By:: Manoj Savalia     Member Level: Silver    Member Rank: 776     Points: 5   Responses: 1



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...




Responses

#685730    Author: Raaj      Member Level: Silver      Member Rank: 863     Date: 24/Aug/2012   Rating: 2 out of 52 out of 5     Points: -1

[Response removed by Admin for invalid response to the thread or violation of forum policies.]


 
Post Reply
You must Sign In to post a response.

Next : How to do validation in silverlight?
Previous : Binding combobox from db
Return to Discussion Forum
Post New Message
Category:

Related Messages
Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2012 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.