Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reports
Message
De
28/04/2008 16:35:27
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Titre:
Reports
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01313631
Message ID:
01313631
Vues:
60
Anyone written any reports in WPF yet?

It's a bit weird, FlowDocuments take block elements like paragraphs and tables. But don't offer much in the way of "real" pagination capabilities and fixed layout.

Fixed documents don't use block elements. they use UIElements, so no paragraphs/tables etc. The layout can be pretty fixed but in order to get sizes for layout you have to do:
fixedPage.Measure(sz);
fixedPage.Arrange(new Rect(new Point(), sz));
fixedPage.UpdateLayout();
every time you wan to get your size information. (I'm worried it may be slow.)

After about 50 false starts figuring out various ways to do this. I'm creating a fixed XPS document using grids and textblocks.

Was curious if anyone else had tried writing reports in WPF and if they had any luck with it?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform