Click here to Skip to main content
15,916,030 members
Home / Discussions / C#
   

C#

 
AnswerRe: Which option is better for Reading file. File.ReadAllText(fileName) OR StreamReader Pin
PIEBALDconsult8-Mar-10 17:41
mvePIEBALDconsult8-Mar-10 17:41 
GeneralRe: Which option is better for Reading file. File.ReadAllText(fileName) OR StreamReader Pin
Luc Pattyn8-Mar-10 17:49
sitebuilderLuc Pattyn8-Mar-10 17:49 
GeneralRe: Which option is better for Reading file. File.ReadAllText(fileName) OR StreamReader Pin
PIEBALDconsult9-Mar-10 3:20
mvePIEBALDconsult9-Mar-10 3:20 
GeneralRe: Which option is better for Reading file. File.ReadAllText(fileName) OR StreamReader Pin
Luc Pattyn9-Mar-10 3:24
sitebuilderLuc Pattyn9-Mar-10 3:24 
GeneralRe: Which option is better for Reading file. File.ReadAllText(fileName) OR StreamReader Pin
PIEBALDconsult9-Mar-10 6:16
mvePIEBALDconsult9-Mar-10 6:16 
GeneralRe: Which option is better for Reading file. File.ReadAllText(fileName) OR StreamReader Pin
Luc Pattyn9-Mar-10 6:33
sitebuilderLuc Pattyn9-Mar-10 6:33 
Questionhow could I print or save datagrid view records? Pin
ronakT8-Mar-10 7:46
ronakT8-Mar-10 7:46 
AnswerRe: how could I print or save datagrid view records?[modified] Pin
Dan Mos8-Mar-10 8:26
Dan Mos8-Mar-10 8:26 
For the printing I'm out. It's very hard(lots of work) to make a professional printing.

For saving there are lots of ansewers. You could save it to a *.CSV file. Or to Excel or pdf.

For excel this article is all about exporting and formatting the datas from the grid view.

For PDF this one.

And of course many other options.

[Edit]When it comes to printing I always rely on external programs like Excel or
FoxItReader/AcrobatReader or... . I found it easier to create small utilities that export a datagrid or a List<T> or... to Excel or PDF or ... than creating a printing solution.
Sure it takes some time o create the *.dll(s) responsible for the generic export but after words you just call .Export() and you're done.
[/Edit]
AnswerRe: how could I print or save datagrid view records? Pin
Sandeep Mewara8-Mar-10 9:53
mveSandeep Mewara8-Mar-10 9:53 
AnswerRe: how could I print or save datagrid view records? Pin
David MacDermot8-Mar-10 10:08
David MacDermot8-Mar-10 10:08 
QuestionC# to control unicode bill printing in Dotmatrix printer Pin
Winmass8-Mar-10 7:43
Winmass8-Mar-10 7:43 
AnswerRe: C# to control unicode bill printing in Dotmatrix printer Pin
PIEBALDconsult8-Mar-10 11:47
mvePIEBALDconsult8-Mar-10 11:47 
AnswerRe: C# to control unicode bill printing in Dotmatrix printer Pin
98529322549-Mar-10 2:05
98529322549-Mar-10 2:05 
GeneralRe: C# to control unicode bill printing in Dotmatrix printer Pin
Winmass9-Mar-10 16:04
Winmass9-Mar-10 16:04 
QuestionForce static objects to load when program starts, not lazy (load when first used)? Pin
Matthew Klein8-Mar-10 6:24
Matthew Klein8-Mar-10 6:24 
AnswerRe: Force static objects to load when program starts, not lazy (load when first used)? Pin
Keith Barrow8-Mar-10 6:36
professionalKeith Barrow8-Mar-10 6:36 
GeneralRe: Force static objects to load when program starts, not lazy (load when first used)? Pin
harold aptroot8-Mar-10 6:53
harold aptroot8-Mar-10 6:53 
GeneralRe: Force static objects to load when program starts, not lazy (load when first used)? Pin
Keith Barrow8-Mar-10 7:02
professionalKeith Barrow8-Mar-10 7:02 
GeneralRe: Force static objects to load when program starts, not lazy (load when first used)? Pin
harold aptroot8-Mar-10 7:16
harold aptroot8-Mar-10 7:16 
GeneralRe: Force static objects to load when program starts, not lazy (load when first used)? Pin
Matthew Klein8-Mar-10 7:03
Matthew Klein8-Mar-10 7:03 
GeneralRe: Force static objects to load when program starts, not lazy (load when first used)? Pin
harold aptroot8-Mar-10 7:14
harold aptroot8-Mar-10 7:14 
AnswerRe: Force static objects to load when program starts, not lazy (load when first used)? Pin
Keith Barrow8-Mar-10 7:14
professionalKeith Barrow8-Mar-10 7:14 
QuestionRe: Force static objects to load when program starts, not lazy (load when first used)? Pin
Matthew Klein8-Mar-10 7:46
Matthew Klein8-Mar-10 7:46 
AnswerRe: Force static objects to load when program starts, not lazy (load when first used)? Pin
harold aptroot8-Mar-10 8:30
harold aptroot8-Mar-10 8:30 
GeneralRe: Force static objects to load when program starts, not lazy (load when first used)? Pin
Matthew Klein8-Mar-10 8:53
Matthew Klein8-Mar-10 8:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.