F
Freisoft
Here is a good problem where I cannot seem to easily find a solution...
We are currently working on a .NET client application using the Visio
Drawing Control. Part of our application requires having to export the
Visio drawing as an image that we then load onto a dynamically created
HTML page. We need to be able to load the exported image in the same
relative location to the top and left of the page as the shapes existed
in the Visio Drawing Control. As you may know, when Visio exports the
image, it is cropped and therefore loses margin settings from the sides
of the page.
I know that I can iterate through each of the shapes, find the top-left
most shape and retrieve that shape's properties and base the image
placement on that. However, I am hoping that there is a simpler and more
efficient method for restoring the margin values without having to
iterate through each of the shapes.
For those inquiring why, our solution involves substituting certain
master shapes with actual ASP.NET custom controls at run-time, while
preserving the exact look and feel of the rest of the drawing. We need
to ensure that the substituted shapes are created in the same location
as where they were defined in the drawing.
Thanks in advance!
Best Regards,
Neil A. Konitzer
Freisoft Consulting Services, Inc.
www.freisoft.com
We are currently working on a .NET client application using the Visio
Drawing Control. Part of our application requires having to export the
Visio drawing as an image that we then load onto a dynamically created
HTML page. We need to be able to load the exported image in the same
relative location to the top and left of the page as the shapes existed
in the Visio Drawing Control. As you may know, when Visio exports the
image, it is cropped and therefore loses margin settings from the sides
of the page.
I know that I can iterate through each of the shapes, find the top-left
most shape and retrieve that shape's properties and base the image
placement on that. However, I am hoping that there is a simpler and more
efficient method for restoring the margin values without having to
iterate through each of the shapes.
For those inquiring why, our solution involves substituting certain
master shapes with actual ASP.NET custom controls at run-time, while
preserving the exact look and feel of the rest of the drawing. We need
to ensure that the substituted shapes are created in the same location
as where they were defined in the drawing.
Thanks in advance!
Best Regards,
Neil A. Konitzer
Freisoft Consulting Services, Inc.
www.freisoft.com