Tag Archives: c#

How to set default file name for export from CrystalReportViewer in ASP.Net

I have had nice discussion about a new Crystal Reports based web-site today. And everything seems to be fine… Except users want to see a proper default name for the exported files… Environment: Crystal Reports 2008 engine IIS 7 ASP.Net … Continue reading

Posted in Crystal Reports | Tagged , , , , | 3 Comments

File locks or when garbage collection goes bad

With introduction of garbage collection (System.GC name space) in .Net, life of the Windows programmer become easy – no need to worry about releasing objects, code become simpler, etc. In “old” time one would need to use Interfaces to achieve similar functionality … Continue reading

Posted in Fun stuff with C#, Technology | Tagged , , , , , | Leave a comment

Assert is your friend… not an end-user’s

As a long time Delphi and C# programmer one become used to some features of the language and may not go deep into “philosophical” thinking about such features. This often happen with Asserts… What is Assert or Assertion? By its … Continue reading

Posted in Delphi, Fun stuff with C# | Tagged , , , , , | Leave a comment

ASP.Net/WF : New built-in .Net Charting control

I was always for a “built-in” support of features in modern development environment. Even if it comes in basic form, we, as programmers, should have ability to do “basic” stuff without 3rd party involvement. There are plenty of 3rd party solutions … Continue reading

Posted in Delphi, Fun stuff with C#, Technology, Web-design | Tagged , , , , , , | 1 Comment

Tip: Get report parameters as text from Crystal Reports in C#

I am starting a new set of posts presenting small code snippets in C# you could use when working with Crystal Reports in Visual Studio. And the first one is “GetReportParamsAsText“. Very simple but very handy function which allows to … Continue reading

Posted in Crystal Reports | Tagged , , | Leave a comment

Populate TreeView from table in ASP.Net

I was asked today to help with code which would populate the TreeView control from database table in ASP.Net page. Since it is not a first time around and appear to be very common situation with dynamic pages, I thought … Continue reading

Posted in Fun stuff with C# | Tagged , , | 1 Comment

Delphi, methods and default values. Convenience or contract enforcement?

Delphi, methods and default values. Being somewhat unique in methods declaration for the classes, Delphi requires you to have proper method parameters declaration, but: You do not have to have any default values for the parameters being propagated into implementation section for the … Continue reading

Posted in Delphi, Technology | Tagged , , , , | 6 Comments