Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic PrintDiagram Error (Read 2979 times)
lcardinali
YaBB Newbies
*
Offline



Posts: 2
Joined: Dec 14th, 2005
PrintDiagram Error
Dec 15th, 2005 at 9:06am
Print Post  
Hi,
I use a FlowChart control ( named FlowChart1) and then method PrintDiagram, so
FlowChart1.PrintDiagram
it works!
but if I set the page orientation :
FlowChart1.PrintOptions.PageOrientation = poLandscape
the method
FlowChart1.PrintDiagram
generates the following error:
Method 'PrintDiagram' of object 'IFlowChart' failed
Does anyone have any ideas?
thanks
Lisa
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: PrintDiagram Error
Reply #1 - Dec 15th, 2005 at 11:30am
Print Post  
Hi,

Do you use the option that selects a specific printer - PrintOptions.PreferredDevice ? There was a problem in older FlowChartX versions with setting both PreferredDevice and PageOrientation, but now it should work fine with the latest versions. What other printer options does your application use ?

Stoyan
  
Back to top
 
IP Logged
 
lcardinali
YaBB Newbies
*
Offline



Posts: 2
Joined: Dec 14th, 2005
Re: PrintDiagram Error
Reply #2 - Dec 15th, 2005 at 11:38am
Print Post  
the code is this:

FlowChart1.PrintOptions.Title = "Gant"
FlowChart1.PrintOptions.PreferredDevice = "5D PDF Creator"
FlowChart1.PrintOptions.PageOrientation = poLandscape
FlowChart1.PrintOptions.ScaleToPage
FlowChart1.PrintDiagram

if I exclude the setting of page orientation it works
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: PrintDiagram Error
Reply #3 - Dec 15th, 2005 at 11:50am
Print Post  
Ok that might be the same problem there was in old versions, what FlowChartX version do you use now? Can you try printing with version 3.2.4 here:

https://mindfusion.eu/FCXdemoPro.zip
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint