Conversione Local Report a Server Report e viceversa

by Andrea 04 September 2007 06:09

Visto che non è la prima volta che lo cerco, segnalo un link utile a chi deve convertire un report da RDLC a RDL e anche convertire un report da RDL a RDLC:

link: Converting RDL and RDLC Files

Technorati tags: , ,

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Reporting Services

Conoscere la versione di SQL Server

by Andrea 03 August 2007 08:08
Questa me la devo proprio segnare perchè so già che mi tornerà presto utile.smile_wink Per conoscere la versione di SQL Server installata è sufficiente eseguire questa Query:

SELECT  @@version, 
        SERVERPROPERTY('productversion'), 
        SERVERPROPERTY ('productlevel'), 
        SERVERPROPERTY ('edition')
e otterete dei dati simili ai seguenti: Version: Microsoft SQL Server 2005 - 9.00.2050.00 (Intel X86)   Feb 13 2007 23:02:48   Copyright (c) 1988-2005 Microsoft Corporation  Standard Edition on Windows NT 5.2 (Build 3790: Service Pack 2) ProductVersion: 9.00.2050.00 ProductLevel: SP1 Edition: Standard Edition Fonte: How to identify your SQL Server version and edition

Technorati tags:

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Reporting Services | SQL server

Reporting Services 2005, da dove cominciare

by Andrea 03 August 2007 07:08

Dovete/volete iniziare a conoscere SQL Server 2005 Reporting Services ma non sapete da dove cominciare?

Un buon inizio sono i Books Online, che potete trovare a questo link:
SQL Server 2005 Books Online - Reporting Services

Cavoli….mi senbra quasi uno slogan commerciale smile_teeth

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Reporting Services

Reporting Services e field che collassano

by Andrea 29 May 2007 05:05

A volte può essere un problema che le TextBox nei report callassino quando i field non hanno valore.
Una semplice soluzione a questo problema è quella di aggiungere uno spazio in coda al valore dei field:

=Fields!Description.Value

un'altra strada può essere quella di sostituire il valore empty ottenuto dal field con uno spazio:

=IIF(Fields!Description. = "", " ", Fields!Description.Value)

<update del 30.05.2007>
oppure (semplicemente) settare la proprietà InitialToggleState al valore Expanded. (Che di default invece è Collapsed)
</update>

A volte è proprio vero, la strada più semplice è anche la migliore!

Technorati tags: ,

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Reporting Services

Disegnare i report a seconda del rendering

by Andrea 29 May 2007 05:05

Quando dovete creare un Report di Reporting Services, dovete considerare (e stare attenti) al tipo di rendering che vorrete utilizzare. Questo perchè a seconda del rendering che sceglierete ci saranno delle differenze nel layout dei vostri report.

Il non averlo saputo prima, mi è costato un bagno di sangue per il semplice fatto che mi sono dovuto ripassare i Report già creati per risitemare e adattare il tutto.

Una cosa non banale, ad esempio, è che nel rendering HTML, non è previsto la sovrapposizione di item nel Report, ma ci sono molte altre differenze. Ecco quelle che riguardano il rendering HTML

  • The HTML rendering extension builds a table in HTML to contain each set of report items. Items are positioned in the table to preserve the report layout.
  • Locations and sizes are expressed in millimeters (mm). Differences of less than .2 mm are rendered as 0 mm.
  • HTML does not support item overlap. This can result in layout changes as the report is displayed.
  • A subreport is rendered as a DIV tag in the HTML report.


In rete ho trovato un documento che ne spiega alcune di queste differenze, ed inoltre, contiene alcuni tips parecchio utili:

  • Using Rectangles to Keep Objects Together
  • Avoiding Blank Pages
  • Using Page Breaks to Improve Performance for Large Reports
  • Using Filters Instead of Query Parameters
  • Adding Alternating Bars to a Table
  • Inserting A Page Break Following A Specific Number of Rows in A Table
  • Adding Global Values to Headers and Footers
  • Displaying Report Items in the Page Header
  • Creating Drill-Down Links with Conditional Formatting

Il documento è scaricabile da qui Best Practices and Guidelines (.doc) e vi consiglio vivamente la lettura perchè sono sicuro potrà farvi risparmiare parecchio tempo anche a voi. 

Fonte: Report Design: Best Practices and Guidelines

Technorati tags: , ,

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Reporting Services

Reporting Services e bug su field empty

by Andrea 14 May 2007 21:05

Ebbene si, avete letto bene, mi sono trovato davanti ad un bug di Reporting Services che secondo me è davvero grave. Il problema si presenta quando usate una fonte dati xml, e uno dei field del primo elemento non ha valore (es <modello />). Se inserite il field in una lista, noterete che per tutta la colonna non verrà mai valorizzato, mentre, il tutto funziona correttamente se a non aver valore è un field che non sia nel primo elemento.

Se volete riprodurre l'errore, non dovete fare altro che usare come fonte dati un xml tipo questo (e lo impostate come sorgente dati nel report):

<?xml version="1.0" ?>
<automobili>
<auto><marca>fiat</marca><modello /></auto>
<auto><marca>fiat</marca><modello>punto</modello></auto>
</automobili> 

e come query scrivete:

<Query>
<ElementPath IgnoreNamespaces="true">
automobili/auto
</ElementPath>
</Query> 

Noterete che nel dataset non esisterà la colonna "modello", e questo perchè l'elemento "modello" (che è presente) nel xml non è valorizzato.

Ponendo il problema anche nei newsgroup Microsoft di SQL Server, vengo a sapere che sono a conoscenza del problema, e che per il momento non non c'è nessuna soluzione.
L'unica cosa che potete fare è intervenire nel file xml e fare in modo che tutti i campi siano valorizzati. Workaround non sempre praticabile e sicuramente non elegante, ma è l'unica strada percorribile per il momento.

Inutile provare con =Fields!modello.IsMissing o cose del genere perchè perdereste solo tempo, come è capitato a me. Quindi non ci resta che sperare che il bug venga corretto al più presto.

Technorati tags: , , ,

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Reporting Services

Reporting Services Solutions, Patterns and Recipes

by Andrea 08 May 2007 02:05

Segnalo un link utile a chi realizza report con Reporting Services. Si tratta di una raccolta di tips, loro li chiamano Patterns and Recipes veramente utili come:

  • Greenbar Reports
  • Creating a Greenbar Table
  • Creating a Greenbar Matrix
  • Multiple Criterion Report Filtering
  • TOP X and 'Other' Chart
  • Dynamic Images: Scales and Gauges
  • Calculating Variance
  • Synchronizing Charts and Related Report Items
  • Sales Trends
  • ed altri
  • ...

Ecco il link: Reporting Services Solutions, Patterns and Recipes

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Reporting Services

Report Viewer 2005 SP1

by Andrea 13 April 2007 19:04

Apprendo ora, grazie al commento di Blob, che il 23 marzo 2007 è uscito il Serice Pack 1 per il componente ReportViewer.

Per chi non lo conoscesse, è un controllo che permette di visualizzare i report di Reporting Services (compresi i LocalReport) all'interno delle nostre applicazioni (sia per ASP .NET che per Windows Forms).
Per maggiori info potete andare al sito
http://www.gotreportviewer.com/

Per le info a riguardo del SP1:
FIX: The Report Viewer 2005 Service Pack 1 Redistributable Package

Per il downlaod del solo SP1:
Download the Report Viewer 2005 Service Pack 1 Redistributable Package (Upgrade) package now.

Per il download del componente ReportViewer aggiornato:
Download the Report Viewer 2005 Service Pack 1 Redistributable Package (Full installation) package now.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Reporting Services

Report Design Tips and Tricks

by Andrea 20 March 2007 18:03

Se siete alle prese con la creazione di report di Reporting Services, vi consiglio la lettura di questo documento "Report Design Tips and Tricks" scaricabile direttamente da sito Microsoft e contenente una raccolta di Tips & Tricks che vi potranno aiutare parecchio. smile_party

Technorati tags: ,

Currently rated 3.0 by 1 people

  • Currently 3/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Reporting Services

Abilitare i Remote Errors in Reporting Services

by Andrea 30 January 2007 21:01
Lo segnalo perchè può tornar utile anche a qualcun'altro. Nei report di Reporting Services c'è la possibilità di visualizzare gli errori che avvengono in remoto. Per fare ciò, è sufficiente settare nel db ReportServer, nella tabella ConfigurationInfo il campo EnableRemoteErrors a True. In questo modo, gli errori che saranno visualizzati nei report, non saranno più generici e non dovrete più impazzire per capire dove stà il problema. smile_wink Ed ecco un link: http://msdn2.microsoft.com/en-us/library/aa337165.aspx

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Reporting Services