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

MS Access app conversion to .Net w/ intensive use of OLE Containers

I've been reading a number of postings on .Net that indicate that
there is no OLE Container control for .Net applications.

Has anyone successfully converted a VB6 or MS Access 2000/2002 app
that used OLE Controls to hold links to files? If so how did you get
around the no OLE Control limitation?

I have an Access app to SQL Server that uses an OLE control to let
users link to and view medical records, form letters, emails and fax
images in .pdf, .doc, .tif, and a variety of other file formats.

All I need to do is 1) control the files associated with particular
records (know if they are changed or deleted) and 2) print files via
code.

Can this be done with .Net?
Nov 20 '05 #1
8 1572
You can use OLE controls, but you need to add a reference to the file
containing the control in your project. After referencing the control (which
must be installed and registered on each machine you intend to use it on,
including your development machine, you should be able to use it very much
like you would use it in Access or VB6.

"Fly Girl" <gs*******@rgl.net> wrote in message
news:44**************************@posting.google.c om...
I've been reading a number of postings on .Net that indicate that
there is no OLE Container control for .Net applications.

Has anyone successfully converted a VB6 or MS Access 2000/2002 app
that used OLE Controls to hold links to files? If so how did you get
around the no OLE Control limitation?

I have an Access app to SQL Server that uses an OLE control to let
users link to and view medical records, form letters, emails and fax
images in .pdf, .doc, .tif, and a variety of other file formats.

All I need to do is 1) control the files associated with particular
records (know if they are changed or deleted) and 2) print files via
code.

Can this be done with .Net?

Nov 20 '05 #2
What I'd suggest doing is using a ListView control and,
when you open the particular record, add links with icons
into the listview, having the Text property of the
listviewitem set to the full file name, or Medical
Records ID#, or other unique identifier. Then, you can
write code to open the file using the program that
created it, or to open your EMR program and load the
medical record, if it has an API. All in all, it's not
hard, and it's pretty straightforward. You simply have
to write a managed code wrapper for the shell functions
you'll need to call to get the appropriate icon for the
file, and then write a little code to start a process
from the document file you wish to open.

Hope that helps some!
Ben
-----Original Message-----
I've been reading a number of postings on .Net that indicate thatthere is no OLE Container control for .Net applications.

Has anyone successfully converted a VB6 or MS Access 2000/2002 appthat used OLE Controls to hold links to files? If so how did you getaround the no OLE Control limitation?

I have an Access app to SQL Server that uses an OLE control to letusers link to and view medical records, form letters, emails and faximages in .pdf, .doc, .tif, and a variety of other file formats.
All I need to do is 1) control the files associated with particularrecords (know if they are changed or deleted) and 2) print files viacode.

Can this be done with .Net?
.

Nov 20 '05 #3
Thanks for the info!

As long as I can create and directly automate the former OLE Server apps
as objects it looks like I can do most of what I have done before. This
should only mean writing a little more code.

Seems like there may be no way to catch the info provided by the (OLE)
clt_Updated event which would return a code indicating if the OLE object
(file) had changed, been saved, etc. This could induce a lot of overhead
with document saves if I have to save it every time they access the
object instead of just when they save the file.

Thanks for the ideas!

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #4
HI Gail,

You may also try to see if the KB link can help you.
HOWTO: Use the WebBrowser Control to Open an Office Document in Visual
Basic .NET
http://support.microsoft.com/?kbid=304643

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 20 '05 #5
Hmmm, this may be a double post as my attempt to submit this seems to
have gone splat. Sorry if I'm redundant.

Thanks Peter!

However, it seems like the list box control may work best for my needs
since most of the associated files with my records are, in fact, not
office documents but .pdf forms and .tifs off of a fax server. We do
have some Word mail merge letters (this should be fun to translate to
.net) which might benefit from this control.

There is really no need to view the attachments after verifying that the
proper files are associated with each record. Printing them and trying
to catch any changes to them are my main concerns at the moment.

Thanks for the info!

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #6
Hi Gail,

Since you are automation other application, you may try to let that
application write a flag to a temp file, and you can detect the file to get
the status.
If the application that was automation does not supported the
function(Access can do this by using a Macro), you can read the file info
directly to know if it has been changed.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 20 '05 #7
Thanks Peter.

Yesterday I was also looking into using the CommandBarEvents to try to
pass back info on Save/Save As events. This won't work with apps like
Acrobat Reader which doesn't (unless I buy their SDK) allow me to
automate it, but would work with Word and Imaging for Windows.

Looks like there may be some ways to work around this.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #8
Hi Gail,

To track the file change in the .NET, there is a class will do the stuff.

FileSystemWatcher Class
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfSystemIOFileSystemWatcherClassTopic.asp
Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 20 '05 #9

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

Similar topics

16
by: forester | last post by:
lets say its common situation when object have subobjects in container and receives callbacks from contained items. and object want to move objects in containers on signal(callback). iterator is...
27
by: Chuck Grimsby | last post by:
(Repost, due to lack of submissions...) The Microsoft Access Product Group (the people who build Microsoft Access) want your help! One of the main things we're working on for the near future...
3
by: MLH | last post by:
I'm developing an app that I'd like to backup each time I open it for modifications. Is it too late to do so after opening the file with Access? Here's what I've been trying... Trevor Best posted...
3
by: JimF | last post by:
I need to scan a couple of hundred databases in several directories to locate all code that uses a particular function, but cannot figure out how to read the Form or Module text itself. I am...
70
by: lgbjr | last post by:
Hello All, I've been developing a VB.NET app that requires the use of a DB. Up to now, I've been using Access. It's a bit slow, but everything works. I'm at a point now where I need to decide if...
2
by: Viet | last post by:
I have an architectural issue that I have been working on for quite awhile now and I would like another person's point of view. This issue involves the conversion of a VB6 app to VB.NET. In this...
5
by: jimfortune | last post by:
I receive occasional notices from the Intel Software Network. I got one concerning the Intel Math Kernal Library 8.0. The blurb is at: ...
0
by: Lysander | last post by:
Thought I would give something back with a few articles. This article is a bit of code to add error handling. When I have time, I want to write articles on multilingual databases, and Access...
2
by: Lysander | last post by:
I have not seen this feature documented before, so I thought I would share it with you, as I will be using it in a later article. For a combo or list box, the source data is normally a...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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
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...

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.