Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Do you need WYSIWYG report printing mode?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Do you need WYSIWYG report printing mode?

 Post Reply Post Reply
Author
Message
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Topic: Do you need WYSIWYG report printing mode?
    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?
Back to Top
PanicMan View Drop Down
Groupie
Groupie
Avatar

Joined: 20 July 2006
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote PanicMan Quote  Post ReplyReply Direct Link To This Post 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!

Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post 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...
Back to Top
PanicMan View Drop Down
Groupie
Groupie
Avatar

Joined: 20 July 2006
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote PanicMan Quote  Post ReplyReply Direct Link To This Post 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      |
---------------------------------------------
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post 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...

 
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 26 March 2009 at 9:08pm
I can demonstrate working progress with multi-page Print / PrintPreview:
 
 
 
 
You can change columns widths - and print / preview will use it - WYSIWYG mode
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.