Saving Visio shapes to file/db (Visio 2000) 
Author Message
 Saving Visio shapes to file/db (Visio 2000)

Does anyone know how to save a shape to a SQL Server db
(or to a file from which i can stream to the database)?

I've tried all sorts of export functions, but these only
export shapes to an image file which cannot be re-
imported to a visio drawing in its original form.

Is is possible to persist visio objects in VB persistable
classes in a property bag?

Much thanks!
Tommy.



Thu, 27 Jan 2005 00:11:49 GMT  
 Saving Visio shapes to file/db (Visio 2000)
i just opened a drawing (visio2002)
select tools => export to database
select localserver (sql2000 is on workstation)
select create
logon on to server
select database
select table name
select ok (got error message about size)
select ok again and it saved the drawing into the table

Al

Quote:
>-----Original Message-----
>Does anyone know how to save a shape to a SQL Server db
>(or to a file from which i can stream to the database)?

>I've tried all sorts of export functions, but these only
>export shapes to an image file which cannot be re-
>imported to a visio drawing in its original form.

>Is is possible to persist visio objects in VB persistable
>classes in a property bag?

>Much thanks!
>Tommy.
>.



Thu, 27 Jan 2005 23:22:26 GMT  
 Saving Visio shapes to file/db (Visio 2000)
great for drawings....but what about shapes?

thanks.

Quote:
>-----Original Message-----
>i just opened a drawing (visio2002)
>select tools => export to database
>select localserver (sql2000 is on workstation)
>select create
>logon on to server
>select database
>select table name
>select ok (got error message about size)
>select ok again and it saved the drawing into the table

>Al
>>-----Original Message-----
>>Does anyone know how to save a shape to a SQL Server db
>>(or to a file from which i can stream to the database)?

>>I've tried all sorts of export functions, but these
only
>>export shapes to an image file which cannot be re-
>>imported to a visio drawing in its original form.

>>Is is possible to persist visio objects in VB
persistable
>>classes in a property bag?

>>Much thanks!
>>Tommy.
>>.

>.



Fri, 28 Jan 2005 18:08:38 GMT  
 Saving Visio shapes to file/db (Visio 2000)
I'd suggest to look at two pieces of demo code that are
out on the download system. The first is the netconfigdemo
that shows how to tie visio into excel, word, and
powerpoint. This gets the basics on selecting what you
want to grab. The second would be their facilities
management demo. That has the code (and embedded forms)
for doing database updates, although it isn't SQL
specific. Most of my database access stuff is external not
using VBA, although there are some ADO(X) developer kits
out there that give some real help in understanding how to
go against databases. Right now I'm using ADO.NET and
wouldn't recommend it to anybody using a standalone system.
Hope this helps,
Al
Quote:
>-----Original Message-----
>great for drawings....but what about shapes?

>thanks.

>>-----Original Message-----
>>i just opened a drawing (visio2002)
>>select tools => export to database
>>select localserver (sql2000 is on workstation)
>>select create
>>logon on to server
>>select database
>>select table name
>>select ok (got error message about size)
>>select ok again and it saved the drawing into the table

>>Al
>>>-----Original Message-----
>>>Does anyone know how to save a shape to a SQL Server db
>>>(or to a file from which i can stream to the database)?

>>>I've tried all sorts of export functions, but these
>only
>>>export shapes to an image file which cannot be re-
>>>imported to a visio drawing in its original form.

>>>Is is possible to persist visio objects in VB
>persistable
>>>classes in a property bag?

>>>Much thanks!
>>>Tommy.
>>>.

>>.

>.



Fri, 28 Jan 2005 22:33:44 GMT  
 Saving Visio shapes to file/db (Visio 2000)
Hi Tommy,

I'm not sure about persistable classes, but shaped sheet
data can be stored in an SQL server table.  First you have
to create the database and then setup an ODBC connection
to it.  

Then you should be able to use the 'Export to Database'
option in the Visio tools dropdown menu to connect to the
database.  Hope that helps.  good luck!

Sam

Quote:
>-----Original Message-----
>Does anyone know how to save a shape to a SQL Server db
>(or to a file from which i can stream to the database)?

>I've tried all sorts of export functions, but these only
>export shapes to an image file which cannot be re-
>imported to a visio drawing in its original form.

>Is is possible to persist visio objects in VB persistable
>classes in a property bag?

>Much thanks!
>Tommy.
>.



Sat, 29 Jan 2005 03:20:14 GMT  
 Saving Visio shapes to file/db (Visio 2000)
Thanks for the Advice Al, although this does not solve my
problem. This example is fine for retrieving associated
shape information from a db, but doesn't help me in my
quest to save the 'physical' shape to the database. I
need to know how to either create a s{*filter*}file (without
dragging/dropping the shape object) of the shape or to
somehow stream the binary image of the shape to the DB.

Cheers,
Tommy

Quote:
>-----Original Message-----
>I'd suggest to look at two pieces of demo code that are
>out on the download system. The first is the
netconfigdemo
>that shows how to tie visio into excel, word, and
>powerpoint. This gets the basics on selecting what you
>want to grab. The second would be their facilities
>management demo. That has the code (and embedded forms)
>for doing database updates, although it isn't SQL
>specific. Most of my database access stuff is external
not
>using VBA, although there are some ADO(X) developer kits
>out there that give some real help in understanding how
to
>go against databases. Right now I'm using ADO.NET and
>wouldn't recommend it to anybody using a standalone
system.
>Hope this helps,
>Al
>>-----Original Message-----
>>great for drawings....but what about shapes?

>>thanks.

>>>-----Original Message-----
>>>i just opened a drawing (visio2002)
>>>select tools => export to database
>>>select localserver (sql2000 is on workstation)
>>>select create
>>>logon on to server
>>>select database
>>>select table name
>>>select ok (got error message about size)
>>>select ok again and it saved the drawing into the table

>>>Al
>>>>-----Original Message-----
>>>>Does anyone know how to save a shape to a SQL Server
db
>>>>(or to a file from which i can stream to the
database)?

>>>>I've tried all sorts of export functions, but these
>>only
>>>>export shapes to an image file which cannot be re-
>>>>imported to a visio drawing in its original form.

>>>>Is is possible to persist visio objects in VB
>>persistable
>>>>classes in a property bag?

>>>>Much thanks!
>>>>Tommy.
>>>>.

>>>.

>>.

>.



Sat, 29 Jan 2005 18:18:39 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Problems with Visio 5.0-Files in Visio 2000

2. Visio 2000 or Visio 2000 SR-1

3. upgrade the VB program from Visio 5 to Visio 2000

4. Visio 2000 & Visio 2002 Differences

5. SendToBack in Visio 2000 & Visio 2002

6. Visio 2000 VB Script - Shape Properties

7. Link Visio with DB Access 2000

8. Save Visio image in Db

9. Visio 2000 into Word 2000

10. newbie: Visio 2000 timechart from Year 0 to 2000

11. visio viewer or visio web component

12. Saving a Visio document as a jpg file

 

 
Powered by phpBB® Forum Software