Do you need WYSIWYG report printing mode? |
Post Reply |
Author | |
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
Posted: 08 January 2009 at 5:28pm |
Do you need WYSIWYG report printing mode?
On screen you can have many columns with enough column's width to show data but during printing (or print preview) all columns resized to be small enough to fit in one page instead of having report print like excel where after printing user can take a glue and have properWYSIWYG printout with all needed data. Is it interesting for our customers?
|
|
PanicMan
Groupie Joined: 20 July 2006 Status: Offline Points: 13 |
Post Options
Thanks(0)
|
Hello!
Of cource it's interesting! In my case I have a ReportControl grid where all columns are not atomaticly sized. I have also some fixed columns on the left side. If I print it all, all columns don't fit on a single page, and the Grid try to print as long as he can and everything else is not drawn. I wish he would print all columns from left, whitch fits on the page, then, on the second page, draw the fixed columns and the other columns and so on. Do you have an solution like this? O an idea what I have to change? Thanks a lot for help! |
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
If you want to implement it yourself - derive class from XTPReportView - where Print-related functions located - and make multipage with horizontal pages according given column's widths. If you want multiline mode - make a loop to find vertical row size using CALCRECT draw mode for all horizontal pages and use it for real print after.
I am planning to do it when will have time...
|
|
PanicMan
Groupie Joined: 20 July 2006 Status: Offline Points: 13 |
Post Options
Thanks(0)
|
I'm allready omw implemeting this by myself. Its not really easy, because they don't thought that there someone will print a grid without auto-size-columns, much less fixed columns, so it causes errors on printout.
When I'm ready, I can post my code here, if someone need it too or even send it to the developers so they can build in it in future versions. Please let me know. Hmm, what do you mean with real print after? Like this? --------------------------------------------- | Column | Column | Column | | Col | Column | Column | Column | | Row1 | Row1 | Row1 | |Row1 | Row1 | Row1 | Row1 | | Row2 | Row2 | Row2 | |Row2 | Row2 | Row2 | Row2 | --------------------------------------------- |
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
No - this is not a snake it looks Excel printing wide spreadsheets.
|Page 1-1 |Page 1-2 .....
| Column1| Column2 | Column3 | |Column4 | Column5 | Column6 | Column 7 | .......
| Row1 | Row1 | Row1 | |Row1 | Row1 | Row1 | Row1 | | Row2 | Row2 | Row2 | |Row2 | Row2 | Row2 | Row2 | Page 2-1...
Page 3-1...
|
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
I can demonstrate working progress with multi-page Print / PrintPreview:
Static app to run - here: https://forum.codejock.com/uploads/DemoVersion/EditVirtualListIconStatic.rar
You can change columns widths - and print / preview will use it - WYSIWYG mode
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |