bojour..
je travaille sous VS2008, j'ai fais un programme qui me permet d'exporter mon raport crée avec CR2008.
m'ai le probleme l'affichage de l'export en HTML est affiché dans la meme page de mon application web.
comment faire pour personaliser l'export de telle façon qui prend une nouvelle page en meme temps personaliser les zones d'affichage suivant la taille de mon raport d'origine.
voila le programme de mon export sous VS2008
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 MemoryStream oStream; CrystalReport1 crt = new CrystalReport1(); string customerFilePath = Server.MapPath(" donnees.xml"); DataSet ds = new DataSet(); ds.ReadXml(customerFilePath); crt.SetDataSource(ds); CrystalDecisions.Shared.ExportFormatType t = CrystalDecisions.Shared.ExportFormatType.HTML40; CrystalDecisions.Shared.ExportDestinationType t = CrystalDecisions.Shared.ExportDestinationType.NoDestination; string content_type = "text/html"; oStream = (MemoryStream)crt.ExportToStream(t); Response.Clear(); Response.Buffer = true; Response.ContentType = content_type; Response.BinaryWrite(oStream.ToArray());
Merci bien
Partager