Create PDF, Excel or Word File from Crystal Report from Code

Hi,

Some times when working with crystal report viewer you do not want to show the report to user in raw format but instead you want to pass on the report in PDF or other format without requiring user to do extra click. This can be done easily in Dot Net with the following code.

MyReport report = new MyReport();

DataSet ds = GetData();

report.SetDataSource(ds);

report.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, false, "ExportedReport");

 

If you want you

Continued...

ASIA MVP Certification Hero Award 2009

Hi,

Just received the ASIA MVP Certification Hero Award 2009. I did not knew that another award was coming. Was more than pleasantly surprised. Thanks to Microsoft, Microsoft MVP Team, Microsoft Learning Team.

Its amazing that You get awarded for Helping others with the knowledge of discounts available.

Again Thanks to Microsoft for the award.

Vikram


FormView Control will not render any HTML of its own in Asp.net 4.0 if RenderTable property is set to false

Hi,

another of the new features of Asp.net 4.0 is the enhancement(in terms of rendering) made in the Formview control. By default the Formview control would render table, tr and td tags for display of content. This can be of much trouble to many of the designer because they have little control over the rendered HTML.

With Asp.net 4.0 you can disable the rendering of these HTML elements. (Mind you in Asp.Net 4.0 by default these HTML content are rendered.) To do this all you need to do is set the RenderTable property to False.

<asp:FormView ID="FormView1" runat="server" RenderTable="false">


This enhancement can make it easier to style the content of the control with CSS, because no unexpected tags are rendered by the control.Vikram


Asp.net 4.0 set the page metadata programmatically with the help of Page level properties

Hi,

One of the small but new features in Asp.Net 4.0 is the addition of the Title, Metakeyword and Metadescription property in the page class itself. Now we can easily set the Title, Metakeyword and Metadescription (very important for sites looking for SEO.) from the page itself.

This makes adding these values based on some condition or from database very easy. To Add these value to the page now (Asp.Net 4.0) we can write following code.

this.Page.Title =

Continued...

Virtual Techdays from August 19 to august 21 free
Hi,

You can attend Virtual Techdays live using the live meeting. All the session are free and will be available using Live meeting. All session will be held between Aug 19-21.

I would encourage everyone to take the maximum benefit of this opportunity. . This edition of the event will have 13 technology tracks dedicated to developers, infrastructure professionals, architects and designers. You can register for the virtual Techdays from the following Continued...

Windows 7, Windows Server 2008 R2 and Exchange server launch road show in India in 16 different cities

Hi,

Microsoft is organizing a road show for the launch of Windows 7, Windows Server 2008 R2 and Exchange Server 2010. Roadshow will be organized in 16 cities in India on different Dates.

Please find the below list of Cities and Dates for the event. You can find more at the following link. All the events will be held from 2 pm to 6 pm

http:////impactmarketingservice.com//promotions//2010//q1//win7//tech//login.asp

Continued...
Default printer setting using dot net
Hi,

There came a requirement in one of my colleague’s project whereby it was needed to set the printer to be used for the lotus notes (The project is about integrating with Lotus Notes.).  

To solve the issue instead of looking into the Lotus notes API I thought it should be much easy to set the default printer for the machine. Once the Default printer is set Lotus notes will use this printer to print any document.  Below is the code needed to set the default printer of any machine.

[DllImport("winspool.drv", SetLastError = true)]
private static extern

Continued...
 
Copyright © 2006 - 2012 Vikram Lakhotia