Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
i want when i click on print priview link it show table data in text file like window kundli...
Posted
Comments
Sergey Alexandrovich Kryukov 10-Feb-14 2:39am    
Why in text file? Not a very good idea? What is the problem? Any specific requirements?
—SA

1 solution

Don't do it. If you are using print preview, it should show content very similar to what is going to be printed, not anything like some "text file". Any problems with that?

[EDIT]

Everything you really need is explained here: http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument%28v=vs.110%29.aspx[^].

—SA
 
Share this answer
 
v2
Comments
Sttaguru halkan chaudhri 10-Feb-14 2:54am    
I have large table data so its not possible to display all data in gridview that a resion i want to use text file to display data..
Sergey Alexandrovich Kryukov 10-Feb-14 3:18am    
Well, the problem here is: the notion of "text file" does not carry anything related to data display. This is simply irrelevant. Large or not, the purpose of the preview is to show how it is going to look on paper. If you have too much data, provide only one page, as it might be enough. But better provide all the output and some paging, so only the users who want to see it all will page to the end.
—SA
Sttaguru halkan chaudhri 10-Feb-14 2:56am    
I want print priview like window kundli software
Sergey Alexandrovich Kryukov 10-Feb-14 3:19am    
I have no idea what kundli software is, but you can represent data visually the way you want.
—SA
Sttaguru halkan chaudhri 10-Feb-14 7:14am    
Then suggest me , what i will do to display data...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900