Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reports
Message
From
28/04/2008 16:35:27
 
 
To
All
General information
Forum:
ASP.NET
Category:
Windows Presentation Foundation (WPF)
Title:
Reports
Environment versions
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01313631
Message ID:
01313631
Views:
58
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?
Next
Reply
Map
View

Click here to load this message in the networking platform