Esportazione con crystal report net

lunedì 20 aprile 2009 - 09.55

trinity Profilo | Guru

Salve ragazzi,
come posso esportare attraverso codice direttamente una stampa di crystal report net senza farla visualizzare come anteprima con il crystalreportviewer?

Ciao
Cirillo Fabio
www.wondernet.biz
fabio@wondernet.biz
http://blogs.dotnethell.it/fabiocirillo/
http://wnetsoftware.blogspot.com

luxsor Profilo | Guru

Ciao Fabio,
hai provato con la funzione Export abbinata al tipo di file da creare?

Fammi sapere

freeteo Profilo | Guru

Ciao,
come dice luxor puoi usare il metodo "Export" dell'oggetto ReportDocument senza usare il viewer ed esportare quindi da codice:

ReportDocument report = new ReportDocument(); report.Load(@"...\report.rpt", OpenReportMethod.OpenReportByTempCopy); report.SetDataSource(...); report.ExportToDisk(ExportFormatType.PortableDocFormat, "c:\\...prova.pdf");

Ciao.

Matteo Raumer
[MVP Visual C#]
http://blogs.dotnethell.it/freeteo
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?

Dopo esserti registrato potrai chiedere
aiuto sul nostro Forum oppure aiutare gli altri

Consulta le Stanze disponibili.

Registrati ora !
Copyright © dotNetHell.it 2002-2025
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5