M
MCvanOmmen
Dear all,
I recently started to use the Visio DrawingControl in a WinForms solution.
For now it still is testing and trying, but eventually I want to build a tool
which automatically generates FlowCharts based on some database data.
The FLowCharts need to be exported to gif files so we can use them on an
intranet site, without requiring all the users to have Visio installed (yeah
- I know, we could use the Visio viewer... if only everybody was using IE)...
So far, so good: I managed to export Mastershapes to .gif, .jpg ect., so I
have no doubt I will manage the same for the whole page/document. The
question I have, though, is if its possible to change the default settings
for the export filters? When I export through the Visio-app I have a choice
in resolution, size and quality... with automation I'm currently unable to
set those choices! Any ideas, pointers or tips will be greatly appriciated.
If it's not possible to set the export-options, I figured it might be
possible to export to emf and convert that file to say a .jpg with 100%
quality. That does bring me to my second question: is it possible to keep the
exported file in memory - i.e. grab a outputstream or something like that?
That way the conversion could completely take place in-memory... I really
would like to keep the tempory-file-thing to a minimum!
Thanks in advance for you advice!
Marcel
I recently started to use the Visio DrawingControl in a WinForms solution.
For now it still is testing and trying, but eventually I want to build a tool
which automatically generates FlowCharts based on some database data.
The FLowCharts need to be exported to gif files so we can use them on an
intranet site, without requiring all the users to have Visio installed (yeah
- I know, we could use the Visio viewer... if only everybody was using IE)...
So far, so good: I managed to export Mastershapes to .gif, .jpg ect., so I
have no doubt I will manage the same for the whole page/document. The
question I have, though, is if its possible to change the default settings
for the export filters? When I export through the Visio-app I have a choice
in resolution, size and quality... with automation I'm currently unable to
set those choices! Any ideas, pointers or tips will be greatly appriciated.
If it's not possible to set the export-options, I figured it might be
possible to export to emf and convert that file to say a .jpg with 100%
quality. That does bring me to my second question: is it possible to keep the
exported file in memory - i.e. grab a outputstream or something like that?
That way the conversion could completely take place in-memory... I really
would like to keep the tempory-file-thing to a minimum!
Thanks in advance for you advice!
Marcel