sedgey 58 Junior Poster

I take it you are using VS2005 or 2008 if you are using an app_code folder? I suspect you may need to change your publish settings. Also you said web application not website, so just in case, you cannot use app_code in web application projects only web sites, and you need to create the app_code folder by right clicking the project select add ASP.NET folder and choosing app_code from the list.

Anyway, so right click the web application select properties and go to the MSBuildOptions Tab. If you want to be able to change files individually without replacing all the assemblies in the bin folder select "allow this precompiled site to be updatable". If you decide that you want the site to be totally precompiled don't select this checkbox, but remember the asp pages will be just stubs and user controls will be compiled into an assembly. Next I suggest you choose a folder where you want to publish the compiled site too, Visual Studio sets the project folder by default. Once you have done this click apply.

Next you need to right click the web application and click publish, visual studio will then compile the project and publish it to the folder you selected.

At this stage it's probably safer to delete what you have on the web server and replace it with what you have in the new folder. I would also check that your web site is set up correctly in IIS, if this …

sknake commented: very detailed +15
sedgey 58 Junior Poster

1. Right click your project in VS and click properties
2. Cick the publish tab on the left
3. Choose "Prerequisites"
4. Choose "Crystal Reports for .NET Framework 2.0" (make sure
the check box is checked.
5. In the same window you will find 3 vertical Radio Buttons , chose the second one "Download Prerequisites from the
same location as my application" and click ok to close the
window
6. Click the "Publish Now" Command, you will see a new folder gets created in your project.
7. Inside the new folder you will see "CRRedist2005_x86" this will need to be installed on the clients pc to view the reports.

peter_budo commented: Nice step-by-ste[ explanation +14
sedgey 58 Junior Poster

you could also add a literal control to your page/user control

<asp:Literal id="litHtml" runat="server"/>

And then assign your html to its text property:

litHtml.Text = "<h3>Hello World</h3><div>Something here</div>";
Rajesh_13 commented: thanks +0
sedgey 58 Junior Poster

The simplest way is to export the file as a csv (comma seperated values) with a .xls extension which will open in excel although it's technically not an excel document, the alternative is to use the office interop for excel, only trouble with that is that office will need to be installed on the web server plus license. There are some components which do this kind of export e.g. aspose excel but obviously you would need to pay for it. Obviously in both cases the client would be prompted to save the file to their disk as the documents will be streamed from the webserver, having the application automatically save the document on the clients machine would be a lot more complex.

Heres a good article about the csv method:
http://www.dotnetspider.com/kb/Article963.aspx

ses5909 commented: Very good and accurate post +1