By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,572 Members | 1,730 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,572 IT Pros & Developers. It's quick & easy.

VB6 Ole Control

P: n/a
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

--
Terry
(remove the 1's for my email address)
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"Terry Diederich" <te***************@111clairmontfalls.com> scripsit:
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;%5bLN%5d;Q304643>

--
Herfried K. Wagner
MVP VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

P: n/a
Herfried K. Wagner [MVP] wrote:
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...b;%5bLN%5d;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.

--
Terry
(remove the 1's for my email address)
Nov 20 '05 #3

P: n/a
"Terry Diederich" <te***************@111clairmontfalls.com> scripsit:
HOWTO: Use the WebBrowser Control to Open an Office Document
in Visual Basic .NET
<http://support.microsoft.com/default...b;%5bLN%5d;Q30
4643>


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


There is no replacement for the OLE control available.

--
Herfried K. Wagner
MVP VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #4

P: n/a
Herfried K. Wagner [MVP] wrote:

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.

Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.