VB6 Ole Control

  • Thread starter Terry Diederich
  • Start date
T

Terry Diederich

I have a client with a VB6 application that uses the OLE Control
to display PowerPoint slides. The PowerPoint slides are saved
in a column in the database (Oracle). The problem is that the
OLE Control seems to be putting a wrapper around the PowerPoint
file so what is actually saved to the database is not just a
PowerPoint file, but a PowerPoint file and the OLE wrappers.

I am going to convert this application to .NET. I know I could
probably continue to use the VB6 OLE Control within my .NET
application but I don't want to do this. I would really like to
find some way to extract the PowerPoint data from the OLE
Control and save just the PowerPoint to the database. Has
anyone done anything like this?

Thanks in advance
 
H

Herfried K. Wagner [MVP]

Terry Diederich said:
I have a client with a VB6 application that uses the OLE Control
to display PowerPoint slides. The PowerPoint slides are saved
in a column in the database (Oracle). The problem is that the
OLE Control seems to be putting a wrapper around the PowerPoint
file so what is actually saved to the database is not just a
PowerPoint file, but a PowerPoint file and the OLE wrappers.

I am going to convert this application to .NET. I know I could
probably continue to use the VB6 OLE Control within my .NET
application but I don't want to do this. I would really like to
find some way to extract the PowerPoint data from the OLE
Control and save just the PowerPoint to the database. Has
anyone done anything like this?

311303 WebOCHostVB.exe Hosts the WebBrowser Control in Visual Basic .NET
<http://support.microsoft.com/?id=311303>

HOWTO: Use the WebBrowser Control to Open an Office Document in Visual Basic .NET
<http://support.microsoft.com/default.aspx?scid=kb;[LN];Q304643>
 
T

Terry Diederich

Herfried said:
311303 WebOCHostVB.exe Hosts the WebBrowser Control in Visual
Basic .NET <http://support.microsoft.com/?id=311303>

HOWTO: Use the WebBrowser Control to Open an Office Document
in Visual Basic .NET
<http://support.microsoft.com/default.aspx?scid=kb;[LN];Q30
4643>

Okay. Can you explain how these links answer my question?

The problem is that VB6 OLE control puts a wrapper around
document. If I pull the data out of the database and send it to
the browser, I will be sending a PowerPoint document wrapped in
an OLE Control Wrapper. The browser isn't going to know what to
do with that. I am asking if anyone has a way to remove the OLE
wrapper from the data so I end up with just a PowerPoint file.
 
H

Herfried K. Wagner [MVP]

Terry Diederich said:
Okay. Can you explain how these links answer my question?

There is no replacement for the OLE control available.
 
T

Terry Diederich

Herfried said:
There is no replacement for the OLE control available.

??? Again, can you explain how that answers my question? Maybe you
need to reread my original message?

I am totally aware that there is no OLE control other than the VB6
control that, as I stated in my message, I could probably use but don't
want to. I am in no way asking for a replacement for the OLE control.

I'll try explaining this again. In the old VB6 app, the data being
displayed in the OLE control (a PowerPoint slide) was saved to a column
in a database table. However, not only was the PowerPoint data saved
but also the wrappers around the PowerPoint that were from the OLE
control. I would now like to be able to extract the PowerPoint data
from the data that was saved to the database. In other words, strip off
the OLE wrappers and have a PowerPoint slide again.

I am looking for suggestions for anyone who has possibly upgraded an
application from VB6 to .NET that has had to deal with this problem.
In searching Google I have found a few others asking this type of
question but I haven't found any real answers.

Thanks again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top