473,396 Members | 1,967 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,396 software developers and data experts.

Bound OLE in .Net?

I understand that in .Net, there is no such animal as the "bound OLE" frame
available in Access. Unfortunately, as we migrate off of an old (97 -
yikes!) application, combine it with functionality from an old (VS390 -
double yikes) mainframe based processing system into our brand spankin' new
Winforms C# app, this embedded and bound OLE is something I'd really like to
replicate. We store word docs as OLE objects in MS SQL server, retrieve
templates form a source set, programmatically spin through the docs doing
bookmarked inserts and then save the resultant files off to a data table.
For our purposes, it works fantastically, but there is no obvious way to
achieve the same thing via .Net Winforms.

I've done some research involving using the Web Browser, directly
controlling Word, but there is still some functionality that using a Bound
OLE container provides me that I cannot seem to find. Namely, the ability to
bring a document up, but keep it read-only and the ability to pull docs from
a database to be opened by .Net. This is all probably doable, but I'm still
pretty new to this environment (many, many years coding in Visual Basic
3.0-6.0).

Can anyone point me in the right direction here?

Thanks in advance...Skip
Nov 22 '05 #1
1 1244
On Thu, 9 Sep 2004 07:13:02 -0700, "Skip Borland" <sk**@theborlands.com> wrote:

¤ I understand that in .Net, there is no such animal as the "bound OLE" frame
¤ available in Access. Unfortunately, as we migrate off of an old (97 -
¤ yikes!) application, combine it with functionality from an old (VS390 -
¤ double yikes) mainframe based processing system into our brand spankin' new
¤ Winforms C# app, this embedded and bound OLE is something I'd really like to
¤ replicate. We store word docs as OLE objects in MS SQL server, retrieve
¤ templates form a source set, programmatically spin through the docs doing
¤ bookmarked inserts and then save the resultant files off to a data table.
¤ For our purposes, it works fantastically, but there is no obvious way to
¤ achieve the same thing via .Net Winforms.
¤
¤ I've done some research involving using the Web Browser, directly
¤ controlling Word, but there is still some functionality that using a Bound
¤ OLE container provides me that I cannot seem to find. Namely, the ability to
¤ bring a document up, but keep it read-only and the ability to pull docs from
¤ a database to be opened by .Net. This is all probably doable, but I'm still
¤ pretty new to this environment (many, many years coding in Visual Basic
¤ 3.0-6.0).
¤
¤ Can anyone point me in the right direction here?

I wish I had a good suggestion but unfortunately, as you have found, there is no support in .NET for
databinding with OLE stored information.

Your best bet would be to write a utility which retrieves each OLE document from the database and
writes it as a file to the file system. From there you can either use the file system instead of
storing the document in the database (just store the path to the file), or, store the document as a
BLOB in the database in it's native format instead of OLE.
Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)
Nov 22 '05 #2

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

Similar topics

4
by: Aaron Ackerman | last post by:
I am using typed datasets in an N-Tier Windows app using VB.NET. I know this posting cannot be fully explained in a single post that is why I am asking for someone to point me to a real world...
6
by: Matthias Kaeppler | last post by:
Hello, during a discussion on a C++ internet forum, some question came up regarding references and the lifetime of the objects they alias. I can't find any clear wording on that in the draft...
12
by: Russell E. Owen | last post by:
I have several situations in my code where I want a unique identifier for a method of some object (I think this is called a bound method). I want this id to be both unique to that method and also...
19
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate...
4
by: kaborka | last post by:
I have a WinForm with controls bound to a typed recordset that was generated by the Dataset Designer. There are several ComboBox controls with their DataSource bound to different lookup tables. ...
1
by: Bill | last post by:
Problem: Combo box data disappears from view when a requery is done See "Background" below for details on tables, forms & controls On a form, I want to use the setting of bound combo box C1...
0
by: HP | last post by:
Hi there I have a datalist control with some bound controls in its Item Template and a gridview bound to one of those fields (residing also in Item Template). I've found out that when I click...
5
by: njb35 | last post by:
Hi all I'm beginning my foray from VBA into VB 2005 Express, and enjoying some of the efficiencies it provides! I'm stuck with some dataset handling however that I _think_ can be automated but...
1
by: mknoll217 | last post by:
I am recieving this error from my code: The multi-part identifier "PAR.UniqueID" could not be bound. The multi-part identifier "Salary.UniqueID" could not be bound. The multi-part identifier...
0
by: Mike | last post by:
So here's the situation (.NET 2.0 btw): I have a form, and on this form is a textbox among many other databound controls. The textbox is bound to a field in a data table via the Text property. ...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.