473,378 Members | 1,354 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Microsoft: Help with OLE documents...

Hi all.
I have an application to draw and design different documents, that supports
linking and embedding of other documents (like, for instance, Corel Draw or
Word). Then, the user can print their designs "WYSIWYG", so I load the
external document inside an OLE document container control (VB6), get a
handle to the object and invoke OleDraw with the hDC that I want the object
in.
This have been working excellent, and this application is largely
distributed among our clients.
The problem is we want to migrate to .NET (any language, VB, C#, C++, ...),
but there's no OLE container that lets me obtain a handle to an OLE
document.
I know you could import COM and ActiveX, but this particular control
(included in VB6) CANNOT BE IMPORTED NOR INSERTED in .Net.
Microsoft calls this a "migration issue" and warns us about it, but how,
then, can I draw an Ole document inside our application (let alone open,
edit, update, etc)?
Is Microsoft planning to update this component for VS.Net 2005? Or is there
an alternative?
I know I could load an OLE document "the hard way", but those are methods so
obscure, I get lost before even starting to insert the document in a
container... If this is the only solution, is there an easy (as easy as this
can be) example that can lead me to accomplish the insertion of a document
inside mine?
I know it can be done, because RTF editor lets you do it. It even lets you
open and edit the document, and "paste special", but I don't seem to
accomplish getting a handle to any of those inserted objects...
Thank you for your time,
VBen.
Jul 21 '05 #1
4 1713
See the blog at:
http://blogs.vbcity.com/mcintyre/arc...12/07/519.aspx

Be sure to read the comments too ;-0

--
Mike

Mike McIntyre
Visual Basic MVP
www.getdotnetcode.com

"VBen" <bm******@compucaremexico.com> wrote in message
news:u0*************@TK2MSFTNGP09.phx.gbl...
Hi all.
I have an application to draw and design different documents, that
supports
linking and embedding of other documents (like, for instance, Corel Draw
or
Word). Then, the user can print their designs "WYSIWYG", so I load the
external document inside an OLE document container control (VB6), get a
handle to the object and invoke OleDraw with the hDC that I want the
object
in.
This have been working excellent, and this application is largely
distributed among our clients.
The problem is we want to migrate to .NET (any language, VB, C#, C++,
...),
but there's no OLE container that lets me obtain a handle to an OLE
document.
I know you could import COM and ActiveX, but this particular control
(included in VB6) CANNOT BE IMPORTED NOR INSERTED in .Net.
Microsoft calls this a "migration issue" and warns us about it, but how,
then, can I draw an Ole document inside our application (let alone open,
edit, update, etc)?
Is Microsoft planning to update this component for VS.Net 2005? Or is
there
an alternative?
I know I could load an OLE document "the hard way", but those are methods
so
obscure, I get lost before even starting to insert the document in a
container... If this is the only solution, is there an easy (as easy as
this
can be) example that can lead me to accomplish the insertion of a document
inside mine?
I know it can be done, because RTF editor lets you do it. It even lets you
open and edit the document, and "paste special", but I don't seem to
accomplish getting a handle to any of those inserted objects...
Thank you for your time,
VBen.

Jul 21 '05 #2
So, we're back at the beginning... We can't migrate until VS.net 2005 is
released, and even then, we'll have to compile an obscure sample into our
project...
Is there still the idea to "release" the ActiveDocumentHost as a sample
included in .net 2005? Will MS release eventually this control?
Have you seen this Document Host? (just curious).
I'd like to see it, and see if it will fit our needs (even in its
unsupported stage)... Is there a version I could use or compile on VS.net
2002? (we don't have the Beta, and don't plan to install it any time soon).
If so, please let me know where or how to get it...
We really can prescind of OLE support for our app, since GDI+ is much better
than GDI, and our APP will include many features not previously available,
but to support existing customers, we should include full support of
previous versions of our files (and not just files that do not have ole
elements)..... That's a really good question...
Thanks anyway, and I'll be looking forward to see if there's another
solution to our dilema.
Please, if anyone knows of some alternative solution, post here....
VBen.
"Mike McIntyre [MVP]" <mi****@getdotnetcode.com> escribió en el mensaje
news:O8**************@TK2MSFTNGP09.phx.gbl...
See the blog at:
http://blogs.vbcity.com/mcintyre/arc...12/07/519.aspx

Be sure to read the comments too ;-0

--
Mike

Mike McIntyre
Visual Basic MVP
www.getdotnetcode.com

"VBen" <bm******@compucaremexico.com> wrote in message
news:u0*************@TK2MSFTNGP09.phx.gbl...
Hi all.
I have an application to draw and design different documents, that
supports
linking and embedding of other documents (like, for instance, Corel Draw
or
Word). Then, the user can print their designs "WYSIWYG", so I load the
external document inside an OLE document container control (VB6), get a
handle to the object and invoke OleDraw with the hDC that I want the
object
in.
This have been working excellent, and this application is largely
distributed among our clients.
The problem is we want to migrate to .NET (any language, VB, C#, C++,
...),
but there's no OLE container that lets me obtain a handle to an OLE
document.
I know you could import COM and ActiveX, but this particular control
(included in VB6) CANNOT BE IMPORTED NOR INSERTED in .Net.
Microsoft calls this a "migration issue" and warns us about it, but how,
then, can I draw an Ole document inside our application (let alone open,
edit, update, etc)?
Is Microsoft planning to update this component for VS.Net 2005? Or is
there
an alternative?
I know I could load an OLE document "the hard way", but those are methods so
obscure, I get lost before even starting to insert the document in a
container... If this is the only solution, is there an easy (as easy as
this
can be) example that can lead me to accomplish the insertion of a document inside mine?
I know it can be done, because RTF editor lets you do it. It even lets you open and edit the document, and "paste special", but I don't seem to
accomplish getting a handle to any of those inserted objects...
Thank you for your time,
VBen.


Jul 21 '05 #3
We used the Microsoft dsoFramer control in VB6 and it ported fairly
easily to .Net:
http://support.microsoft.com/default...b;EN-US;311765

Other people also seem to have success:
http://www.windowsforms.net/Forums/S...1&PostID=14964

We manipulate Word and Excel with it. Previously we'd tried vb6 ole
control and the webBrowser, the dsoFramer was much better for our
needs.

I suggest that you first try to upgrade your VB6 project to use the
dsoFramer rather than the ole control. If you can get that part of the
VB6 project working OK, it should transfer to dotnet pretty smoothly.

Note that generally in .dotnet you'll have an easier time working with
office documents if you only support Office XP and Office 2003 as they
have offial PIAs. We still support Office 2000 and 97 and debugging the
automation calls to those was a bit painful.

Tim

Jul 21 '05 #4
Microsoft have just updated the dsoFramer. The version we're using is
1.1.1214.0, Copyright ©1996-2001. The version for download now is
1.2.1223.0, Copyright ©1999-2004. Also the knowledge base article was
last updated January 17th 2005 and now reflects use in dotnet.

So it seems that someone at Microsoft actually cares about this
unadvertised and unsupported life saver!

Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: RA | last post by:
Hi Is there any document management that microsoft provides? A large organization need a tool that gets information and can generate documents based on a pre defined templates. Thanks
3
by: Neal | last post by:
Hi All I am trying to connect from ASP.Net app to an Access Db. If i don't specify a userid an pwd.. I get this error The Microsoft Jet database engine cannot open the file 'C:\Documents and...
2
by: William LaMartin | last post by:
I have created a program that allows for the automation of things in Word documents, like changing the values of DocVariables and the links to Excel Sheets. I did it using interoperoperatability,...
4
by: VBen | last post by:
Hi all. I have an application to draw and design different documents, that supports linking and embedding of other documents (like, for instance, Corel Draw or Word). Then, the user can print...
182
by: Jim Hubbard | last post by:
http://www.eweek.com/article2/0,1759,1774642,00.asp
3
by: sokolo | last post by:
Hello, I wrote a windows service application however it is not working. The service is supposed to enter a new task every 5 sec within Microsoft Outlook. Here is the code for application: ...
2
by: thersitz | last post by:
Hi, I have VStudio2005, SQLServer 2005 dev edition loaded on a windowsXP Pro machine. I installed it ok. I just attempted to load the Personal Web Site Starter Kit (I downloaded off...
5
by: md9108 | last post by:
I created, using some borrowed code, an asp search page for our intranet. I'm using frontpage 2003. When I publish I get that complation error on different lines at different times. They all seem...
20
MMcCarthy
by: MMcCarthy | last post by:
This problem was proposed to me but not really my area of expertise so I thought I would open it up to the forum to see if anyone had any bright ideas. The problem is generating Microsoft Word...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.