Wednesday, August 11, 2010

How can i print a XmlFile which viewed in datagrid ?

I have created a windForm in Asp.net in C# code . i wanted to print a xmlFile in datagrid and this xmlfile contain so many childnodes. when i wanted to print only first table had shown but other link table of xmlfile couldn't print. how can i solve this problem?How can i print a XmlFile which viewed in datagrid ?
Have you tried copying it and pasting in Excel then printing from there?How can i print a XmlFile which viewed in datagrid ?
after creating WinForm project in VisualStudio.Net,use the Print Document control of it,and then bind the source to your data grid.





Also you can use help of MSDN
The Problem in your XML File is that u have no clean or even number of Tags..





XML will store data for tag with uneven number of child tags which could not be presented as visually..so it could not able to view in datagrid..


so instead of using of automatic datagrid use manual datagrid..





first try this..


Open the XML file in framework and try to view the data using XML view..if it gives any error then that could not be present in Datagrid Automatically..for that u have Explicitly Specify the required field

No comments:

Post a Comment