Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Print diagram flowchart (Read 5975 times)
rafael.06
YaBB Newbies
*
Offline



Posts: 14
Joined: Apr 18th, 2011
Print diagram flowchart
Jun 28th, 2011 at 12:01pm
Print Post  
I´m trying Print the flowchart diagram and table of data using PrintDiagram function. To print, i´m using the ScaleToPage function to put all the diagram only one page but now, i want print the diagram on first page and the table of data on second page. Any suggestion for this task?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Print diagram flowchart
Reply #1 - Jun 28th, 2011 at 12:04pm
Print Post  
Is that table of data displayed using a FlowchartX Table object?
  
Back to top
 
IP Logged
 
rafael.06
YaBB Newbies
*
Offline



Posts: 14
Joined: Apr 18th, 2011
Re: Print diagram flowchart
Reply #2 - Jun 28th, 2011 at 1:06pm
Print Post  
I creating the table using the class BoxItem and put the data inside of box. Like this:

BoxItem boxSequence;
CString strTitle;
strTitle.Format("Equipe de investigação: ");

===================================
//Text 1 title
boxSequence = this->CreateBox(nX, nY+ i*height, width - widthDescription - widthDay - widthHour , height);

CString strSequence = "Seq";

boxSequence.SetEnableStyledText(true);
boxSequence.SetTextStyle(tsLeft);
boxSequence.SetStyle(bsShape);
boxSequence.SetTextColor(RGB(0,0,0));
boxSequence.SetFillColor(RGB(214,214,214));
boxSequence.SetText( strSequence );

====================================

This code is a part of table that i put in the flowchart view...
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Print diagram flowchart
Reply #3 - Jun 28th, 2011 at 1:15pm
Print Post  
If you call ScaleToPage before creating the data box, it should appear on the next page, as long as it is below all other flowchart items.
  
Back to top
 
IP Logged
 
rafael.06
YaBB Newbies
*
Offline



Posts: 14
Joined: Apr 18th, 2011
Re: Print diagram flowchart
Reply #4 - Jun 28th, 2011 at 1:43pm
Print Post  
Thanks a lot!

This solution works well...
  
Back to top
 
IP Logged
 
rafael.06
YaBB Newbies
*
Offline



Posts: 14
Joined: Apr 18th, 2011
Re: Print diagram flowchart
Reply #5 - Jul 7th, 2011 at 7:59pm
Print Post  
I need create a pdf report with flowchart diagram and others informations. The report was created with success but new questions appeared.

Q1: How can i put a specific text into one page? i.e: I want control the information in each page and avoid text cut off between pages.

Q2: How can i print report with vetorial image? I´m generating all the datas of report in the flowchart view and printing the report with PrintDiagram function. When the print is finished, i redraw the window and keep only flowchart diagram. The pdf report doesn´t have a good quality...

Thanks!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Print diagram flowchart
Reply #6 - Jul 7th, 2011 at 8:46pm
Print Post  
Are you using some kind of PDF virtual printer?
  
Back to top
 
IP Logged
 
rafael.06
YaBB Newbies
*
Offline



Posts: 14
Joined: Apr 18th, 2011
Re: Print diagram flowchart
Reply #7 - Jul 7th, 2011 at 9:39pm
Print Post  
i´m using CutePDF writer
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Print diagram flowchart
Reply #8 - Jul 8th, 2011 at 6:18am
Print Post  
1. You could enable ShowPageMarkers and let your users draw text boxes away from the marker lines. If you need to do that automatically, you will have to query the printer driver for the default page size and shift boxes up or down to avoid the page boundaries.

2. What makes you think it's not a vector image? FlowchartX prints using standard drawing APIs that should result in corresponding PDF vector drawing elements. I have tried printing with the latest CutePDF and the generated PDFs look fine.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint