Print Page | Close Window

Do you need WYSIWYG report printing mode?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=13122
Printed Date: 17 June 2024 at 12:27am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Do you need WYSIWYG report printing mode?
Posted By: mdoubson
Subject: Do you need WYSIWYG report printing mode?
Date 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?



Replies:
Posted By: PanicMan
Date Posted: 06 February 2009 at 12:21pm
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!



Posted By: mdoubson
Date Posted: 11 February 2009 at 5:44pm
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...


-------------
Mark Doubson, Ph.D.


Posted By: PanicMan
Date Posted: 12 February 2009 at 6:18am
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      |
---------------------------------------------


Posted By: mdoubson
Date Posted: 12 February 2009 at 2:53pm
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...

 


-------------
Mark Doubson, Ph.D.


Posted By: mdoubson
Date Posted: 26 March 2009 at 9:08pm
I can demonstrate working progress with multi-page Print / PrintPreview:
 
https://forum.codejock.com/uploads/temp/20090326_210905_MultiPages.jpg - https://forum.codejock.com/uploads/temp/20090326_210905_MultiPages.jpg
 
 
Static app to run - here: https://forum.codejock.com/uploads/DemoVersion/EditVirtualListIconStatic.rar - https://forum.codejock.com/uploads/DemoVersion/EditVirtualListIconStatic.rar
 
You can change columns widths - and print / preview will use it - WYSIWYG mode


-------------
Mark Doubson, Ph.D.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net