Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
other
informationbridge
office.intranets
office.misc
office.setup
office.xml
officeupdate
onenote
photodraw.discussion
powerpoint
producer
proj.standard&server
project
project.developer
project.pro_and_serve
project.server
project.vba
project2000
publisher
publisher.prepress
publisher.programming
publisher.webdesign
visio
visio.createshapes
visio.database.modeling
visio.dev.diagrams
visio.dev.shapesheet
visio.dev.vba
visio.dev.vc
visio.developer
visio.general
visio.installation
visio.printing
visio.software.modeling
visio.troubleshoot
  
 
date: Mon, 11 Jul 2005 10:43:03 -0700,    group: microsoft.public.visio.createshapes        back       


DrawPolyLine Limits   
Does anyone know what the limits of the DrawPolyline method of the Document 
object are?  Primarily in terms of the limits on the number of elements 
allowed to be passed in in the xyArray argument.  
I'm using it now and on some occasions it die (I'm guessing because there 
are too many array elements)  It errors out with "Invalid Parameter".  Any 
ideas on ways to get around the limits (if that what the problem is). The 
error tends to appear when I have more than like 10000 elements in the array.

Thanks again
date: Mon, 11 Jul 2005 10:43:03 -0700   author:   adb

RE: DrawPolyLine Limits   
Oops... just to clarify, it's actually the DrawPolyLine method of the Page 
object

"adb" wrote:

> Does anyone know what the limits of the DrawPolyline method of the Document 
> object are?  Primarily in terms of the limits on the number of elements 
> allowed to be passed in in the xyArray argument.  
> I'm using it now and on some occasions it die (I'm guessing because there 
> are too many array elements)  It errors out with "Invalid Parameter".  Any 
> ideas on ways to get around the limits (if that what the problem is). The 
> error tends to appear when I have more than like 10000 elements in the array.
> 
> Thanks again
date: Mon, 11 Jul 2005 11:23:02 -0700   author:   adb

RE: DrawPolyLine Limits   
DrawPolyLine seems to only be able to support  an array that has a maximum of 
8186 elements in it, or 4093 x,y coordinate pairs.  To get around the limit, 
I just had to watch for when the array reached the limit, then execute 
DrawPolyLine with the maxxed out array, then reset the array and start it 
over continuing with the next element.  After all elements were created, I 
then selected each of the polyline segments and did a Combine or Join on 
them.  That left the shapes not filled though, so I also had to set the 
FillPattern and Foreground Fill Color as well as setting the NoFill property 
in the shapesheet to false.

"adb" wrote:

> Oops... just to clarify, it's actually the DrawPolyLine method of the Page 
> object
> 
> "adb" wrote:
> 
> > Does anyone know what the limits of the DrawPolyline method of the Document 
> > object are?  Primarily in terms of the limits on the number of elements 
> > allowed to be passed in in the xyArray argument.  
> > I'm using it now and on some occasions it die (I'm guessing because there 
> > are too many array elements)  It errors out with "Invalid Parameter".  Any 
> > ideas on ways to get around the limits (if that what the problem is). The 
> > error tends to appear when I have more than like 10000 elements in the array.
> > 
> > Thanks again
date: Thu, 14 Jul 2005 06:15:16 -0700   author:   adb

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us