Page Index Toggle Pages: 1 [2] 3  Send TopicPrint
Very Hot Topic (More than 25 Replies) serious problem in print preview (Read 25230 times)
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: serious problem in print preview
Reply #15 - Mar 28th, 2010 at 10:52am
Print Post  
This version should make the borders more symmetrical, and hide them completely when ControlPadding is 0:
https://mindfusion.eu/_beta/flowchartx32_drawaxshapes.zip

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
andrewsando1973
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Feb 14th, 2010
Re: serious problem in print preview
Reply #16 - Mar 30th, 2010 at 8:01am
Print Post  
Thank you so much, i will try it now.

regarding the DataObject issue, i've communicated with the fpSpread Tech. support and they added a method for me RenderToMeta file so that i can get the fpspread into a meta file format and then set the picture prop of the box to that meta file at the time of printing.

and it works fine, but for your knowledge the fpSpread support tech told me that its tool implements IViewObject:Cheesyraw and should render correctly to a metafile device context.

below is the final reply of the fpspread product manager.

"" Hi Andrew,

I agree with the FlowChartX support tech, you should not have to do
anything special in your code to make this work.  Spread implements
IViewObject:Cheesyraw and should render correctly to a metafile device
context.  It does not, however, have any default behavior for
IDataObject -- it is implemented only for use with OLE drag and drop,
and you need to write code in the appropriate events to specify what
formats and data you want to provide to the drop target.  If the flow
chart control is calling into the IViewObject:Cheesyraw method to draw the
control in a meta file, and not trying to get a meta file from the
IDataObject interface, then it should work. ""

Thanks again,
Andrew
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: serious problem in print preview
Reply #17 - Mar 30th, 2010 at 11:38am
Print Post  
It does support IViewObject, but no matter what arguments we called the Draw method with, we could never get anything rendered. Anyway if you managed to get the spread to print, we'll leave it at that.

Stoyan
  
Back to top
 
IP Logged
 
andrewsando1973
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Feb 14th, 2010
Re: serious problem in print preview
Reply #18 - Apr 6th, 2010 at 12:55pm
Print Post  
Hi Stoyo, sorry for disturbing you again.

But the box hosting an axcontrol is still shifting one pixel to the right and other to the bottom even when i set the control padding to 0.
Also, i feel that the performance of DrawShape is not consistent i mean sometimes there is a shifted pixel to the right and to the bottom edges and sometimes (rare) to the bottom only!!

Is there any solution for this?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: serious problem in print preview
Reply #19 - Apr 6th, 2010 at 3:50pm
Print Post  
Hi,

Are you sure you are using the build from that zip -
https://mindfusion.eu/_beta/flowchartx32_drawaxshapes.zip

Could you copy here the box coordinates with which you can see that shifted pixel?

Stoyan
  
Back to top
 
IP Logged
 
andrewsando1973
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Feb 14th, 2010
Re: serious problem in print preview
Reply #20 - Apr 8th, 2010 at 9:27am
Print Post  
Yes, i'm sure of using that version.

what do you mean by the box co-ordinates?
the axcontrol is shifted with any box dimension, but in general the box size is rarely less than 70-100 width and 20 height.

Also even when the padding is = 0 the bottom or  right border is still visible.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: serious problem in print preview
Reply #21 - Apr 8th, 2010 at 3:21pm
Print Post  
Could you post the box' Shape, Top, Left, Right and Bottom property values with which you can see the shifted pixels?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: serious problem in print preview
Reply #22 - Apr 9th, 2010 at 1:04pm
Print Post  
Ok, we've found now how it happens in GDI+ graphics mode; we were trying it only in the classic mode where it works fine.
  
Back to top
 
IP Logged
 
andrewsando1973
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Feb 14th, 2010
Re: serious problem in print preview
Reply #23 - Apr 12th, 2010 at 7:20am
Print Post  
ah ok, that's why.

so are going to fix it?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: serious problem in print preview
Reply #24 - Apr 14th, 2010 at 1:43pm
Print Post  
Upon a further investigation, it seems that happens when ZoomFactor is different than 100. Can you confirm that? We are not sure if we can fix anything about this. ZoomFactor leads to a ScaleTransform applied to the Graphics object; in GDI+ this might lead to non-integer coordinates of the box border, while the hosted ActiveX control can only have integer coordinates, and thus there's some space left sometimes between the box border and the hosted control. If this happens at your side because of ZoomFactor too, you might try using some rounded values as a workaround, e.g. 25, 50, 75, 100.

Stoyan
  
Back to top
 
IP Logged
 
andrewsando1973
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Feb 14th, 2010
Re: serious problem in print preview
Reply #25 - Apr 15th, 2010 at 9:55am
Print Post  
But i'm not using zoom.
Or do you mean that this problem will happen even if the zoom is 100%?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: serious problem in print preview
Reply #26 - Apr 15th, 2010 at 10:58am
Print Post  
We can see this happen only after zooming in. So you are not using any of the ZoomToFit, ZoomToRect, ZoomIn methods or the ZoomFactor property?
  
Back to top
 
IP Logged
 
andrewsando1973
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Feb 14th, 2010
Re: serious problem in print preview
Reply #27 - Apr 15th, 2010 at 11:02am
Print Post  
No,
i'm not using zooming at all.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: serious problem in print preview
Reply #28 - Apr 15th, 2010 at 12:53pm
Print Post  
Are you using MeasureUnit = Pixel ?
  
Back to top
 
IP Logged
 
andrewsando1973
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Feb 14th, 2010
Re: serious problem in print preview
Reply #29 - Apr 15th, 2010 at 12:58pm
Print Post  
No, i don't think so.
I'm using points.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 3 
Send TopicPrint