when you are binding the valuesfromanysource, create another alias in your selection query.
ex: select fullname,left(fullname,20) as shortname from tablename
the 20 mentioned can be of your need.andthen bind the shortname to literal.it works.
and the last,in code behind pageListForExportExcel.aspx.cs
use this :
protectedvoid Page_Load(object sender, EventArgs e)
Response.Clear();// this for clear any response
Response.Buffer = true; // and then set to Buffer is true
Response.ContentType = "application/vnd.ms-excel";// and this is for call type what you want to set File extention for save....you can export to pdf ,if you change value Response.ContentTypevar process = new DataLayersCollections();//set here by name your BusinesLogicvar list = process.GetListFromDataTable(); //set here by name your functions
rep1.DataSource = list;
and the latter again .......
good luck ....
hope this help you.....
I am using eGRC Archer tool which is developed in Asp.net.
In this tool we are having already developed applications.
There is a em-build feature of exporting records to PDF and RTF format. Whenever we export any record which contains images, Images are not being displayed on PDF or RTF while images are visible on webpage. Can anybody suggest that is there any setting in IIS or in WebConfig file so that images can be exported. Your suggestions are appreciated.
Well that's because images are embedded inside pdf files.
I think when you create a pdf, you have to use the physical location of the file, and not the virtual location, in order to embed the image. That should of been in the instructions for your pdf generator.