Monday, October 15, 2007

Virtual Directory Creation

How to create Virtual Directory in 2 steps?

Step 1: Check for IIS in your System.

Start->Settings->Control Panel->Administrative Tools->Internet Information Services.

To create a Virtual Directory we need to have IIS to be installed in our system. If not install it from OS CD.

Step 2:Creating Virtual Directory for a folder.

Create folder-> Store the asp/aspx file in the folder -> Right click folder->Choose Properties -> Choose WebSharing Tab -> Choose share this folder option->Give Alias name to as through the browser e.g. http:\\demo\sample.asp. So demo is the alias name of the folder ->Choose ther required permission->Press ok.

So your virtual directory will be created now.

Sunday, October 14, 2007

Prinrting Word Document with table contents and charts

My Team Leader asked me to create a module which as to print the word document with the content given by the users such as polling answers, along with the charts (Bar chart, Radar Chart).

But I am not so well worst with these. Then I goggle it I learnt using COM dll we can do it.

I have tried with windows form application it worked fine. But my TL asked with web application using Asp.Net with C#. I used the same code what I used for windows application bu throughing could not open macro storage exception.

I didn't get the answers for these exception for 2 days then I tried and found I need to add "Identity impersionate" in web.config file.

So I ask you if any Query regarding COM you can always post your queries in my blog. I will be replying your query within 24hrs