B-Arts DocumentationIndice generale

BReportingService

Identità

  • Namespace: B.BReports

  • Assembly: BFramework

  • Tipo: class

  • Sorgente API: versione 5.0.1

Scopo

Esegue report RDLC locali oppure report remoti tramite SQL Server Reporting Services. Può inoltre verificare elementi, creare la cartella dei report, configurare l'origine dati Cnn e pubblicare definizioni RDL.

Dichiarazione

public class BReportingService

Costruttori

  • BReportingService()

  • BReportingService(eEngine Engine)

  • BReportingService(eVersion Version, string Server, bool SSL = false)

Il costruttore con eVersion seleziona automaticamente eEngine.ReportingService.

Proprietà

Proprietà Tipo Predefinito Significato
Engine eEngine BReportEngine Motore locale o SSRS.
Version eVersion Current Famiglia di endpoint SSRS.
Server string "" Host senza protocollo e percorso del servizio.
SSL bool false Usa HTTPS.
UseDefaultCredential bool false Usa le credenziali Windows del processo.
Username string "" Utente Windows SSRS.
Password string "" Password cifrata B-Arts per SSRS.
Domain string "" Dominio Windows.
ReportFolder string "Reports" Cartella locale RDLC o cartella SSRS.
DBReportServer string "" Server SQL dell'origine dati.
DBReportDatabase string "" Database dell'origine dati.
DBReportUsername string "" Utente SQL dell'origine dati.
DBReportPassword string "" Password SQL cifrata B-Arts.
MaxReceivedMessageSize long 104857600 Dimensione massima WCF.
Timeout TimeSpan 50 minuti Timeout WCF.
LogText BLogText nuova istanza Log operativo e degli avvisi.

Metodi

Metodo Restituisce Descrizione
Render(BReport Report) BReportResult Rendering sincrono.
RenderAsync(BReport Report) Task<BReportResult> Rendering asincrono locale o remoto.
RenderToByteArray(BReport Report) byte[]? Contenuto del file prodotto.
GetServerUri() Uri URI base /ReportServer.
ClearLog() void Svuota il log.
GetTextLog() string Testo del log.
ExistItem(string Item, string StartFolder = "") eExistItem Cerca un elemento nel catalogo.
ExistItemAsync(string Item, string StartFolder = "") Task<eExistItem> Variante asincrona.
CreateReportFolder() bool Crea ReportFolder.
CreateReportFolderAsync() Task<bool> Variante asincrona.
CreateDataSource() bool Crea/aggiorna l'origine dati Cnn.
CreateDataSourceAsync() Task<bool> Variante asincrona.
CreateReport(string NomeReport, byte[] Report) bool Pubblica una definizione RDL.
CreateReportAsync(string NomeReport, byte[] Report) Task<bool> Variante asincrona.

Compatibilità

Versione Rendering Catalogo
RS2000 ReportService.asmx operazioni pubbliche non implementate
RS2008 ReportExecution2005.asmx ReportService2005.asmx
RS2012 / Current ReportExecution2005.asmx ReportService2010.asmx
RS2012SharePoint endpoint SharePoint endpoint SharePoint 2010

Errori

  • Il rendering registra l'errore e rilancia l'eccezione.

  • Le operazioni di catalogo registrano l'errore e restituiscono false o EXCEPTION.

  • Gli avvisi di pubblicazione sono aggiunti a LogText.

Firme pubbliche estratte dal sorgente

B.BReports.BReportingService
B.BReports.BReportingService.eEngine
B.BReports.BReportingService.eVersion
B.BReports.BReportingService.eExistItem
B.BReports.BReportingService.BReportingService()
B.BReports.BReportingService.BReportingService(B.BReports.BReportingService.eEngine)
B.BReports.BReportingService.BReportingService(B.BReports.BReportingService.eVersion, string, bool)
B.BReports.BReportingService.Engine
B.BReports.BReportingService.Version
B.BReports.BReportingService.Server
B.BReports.BReportingService.SSL
B.BReports.BReportingService.UseDefaultCredential
B.BReports.BReportingService.Username
B.BReports.BReportingService.Password
B.BReports.BReportingService.Domain
B.BReports.BReportingService.ReportFolder
B.BReports.BReportingService.DBReportServer
B.BReports.BReportingService.DBReportDatabase
B.BReports.BReportingService.DBReportUsername
B.BReports.BReportingService.DBReportPassword
B.BReports.BReportingService.MaxReceivedMessageSize
B.BReports.BReportingService.Timeout
B.BReports.BReportingService.LogText
B.BReports.BReportingService.Render(B.BReports.BReport)
B.BReports.BReportingService.RenderAsync(B.BReports.BReport)
B.BReports.BReportingService.RenderToByteArray(B.BReports.BReport)
B.BReports.BReportingService.GetServerUri()
B.BReports.BReportingService.ClearLog()
B.BReports.BReportingService.GetTextLog()
B.BReports.BReportingService.ExistItem(string, string)
B.BReports.BReportingService.ExistItemAsync(string, string)
B.BReports.BReportingService.CreateReportFolder()
B.BReports.BReportingService.CreateReportFolderAsync()
B.BReports.BReportingService.CreateDataSource()
B.BReports.BReportingService.CreateDataSourceAsync()
B.BReports.BReportingService.CreateReport(string, byte[])
B.BReports.BReportingService.CreateReportAsync(string, byte[])

<!-- BAIDocs:API:fine -->