473,651 Members | 2,793 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to: Referencing a DLL

Actually I am not sure how to word this question, I will try my best.

[ Problem ]
Remove all the HTML code from a give *.html file and show it as text file.

[ My Solution ]
I am using WebBrowser to open (local) html file and using MSHTML to get text
from <body> part of html file.

[ Code ]
// create DocumentClass object by casting
mshtml.HTMLDocu mentClass webPage =
(mshtml.HTMLDoc umentClass) this.axWebBrows er1.Document;
// get text out of DocumentClass object
this.rtfBox.Tex t = webPage.body.in nerHTML;

[ New Problem ]
I have referenced WebBrowser and MSHtml in my solution. I see InterOp
working here and creating axWebBrowser for me so that I can use it. Now if I
deploy this project some place then do I need to worry about these files
being installed (with the correct version I am referencing to) or I need to
install these files and register them in registry in the target machine? Not
to over lap my first question, is there a better way then my solution?

Thanks,
Chang
Nov 16 '05 #1
2 1774
Hi,

When you are using a COM (unmanage code) in your manage application the
tlibimp command is used by the IDE behind the seen to create a wrapper
around the COM object. but specifically talking about the browser com you
don't have to worry about the version issue if the OS is higher than win 98.
that mean you don't have to deploy the actaul com object (shdocvw.dll) with
ur application. But in some win 98 machine you may encounter some problems..
to solve this.. right click on the referece and select property and select
to "copy to local". this will basically copy the shdocvw.dll to your app
working folder, whcih ultimately solve teh problem you will face with win
98. as far as I can remember same applies to HTML DOM as well. (add the
referece and select copyt to local) This way you should run ur app any where
that any MS .Net application runs..

Nirosh.

"Chang" <no*****@thisad dress.com> wrote in message
news:eP******** ******@TK2MSFTN GP14.phx.gbl...
Actually I am not sure how to word this question, I will try my best.

[ Problem ]
Remove all the HTML code from a give *.html file and show it as text file.

[ My Solution ]
I am using WebBrowser to open (local) html file and using MSHTML to get text from <body> part of html file.

[ Code ]
// create DocumentClass object by casting
mshtml.HTMLDocu mentClass webPage =
(mshtml.HTMLDoc umentClass) this.axWebBrows er1.Document;
// get text out of DocumentClass object
this.rtfBox.Tex t = webPage.body.in nerHTML;

[ New Problem ]
I have referenced WebBrowser and MSHtml in my solution. I see InterOp
working here and creating axWebBrowser for me so that I can use it. Now if I deploy this project some place then do I need to worry about these files
being installed (with the correct version I am referencing to) or I need to install these files and register them in registry in the target machine? Not to over lap my first question, is there a better way then my solution?

Thanks,
Chang

Nov 16 '05 #2
Thx.

"Champika Nirosh" <te**@test.lk > wrote in message
news:OZ******** ******@TK2MSFTN GP14.phx.gbl...
Hi,

When you are using a COM (unmanage code) in your manage application the
tlibimp command is used by the IDE behind the seen to create a wrapper
around the COM object. but specifically talking about the browser com you
don't have to worry about the version issue if the OS is higher than win
98.
that mean you don't have to deploy the actaul com object (shdocvw.dll)
with
ur application. But in some win 98 machine you may encounter some
problems..
to solve this.. right click on the referece and select property and select
to "copy to local". this will basically copy the shdocvw.dll to your app
working folder, whcih ultimately solve teh problem you will face with win
98. as far as I can remember same applies to HTML DOM as well. (add the
referece and select copyt to local) This way you should run ur app any
where
that any MS .Net application runs..

Nirosh.

"Chang" <no*****@thisad dress.com> wrote in message
news:eP******** ******@TK2MSFTN GP14.phx.gbl...
Actually I am not sure how to word this question, I will try my best.

[ Problem ]
Remove all the HTML code from a give *.html file and show it as text
file.

[ My Solution ]
I am using WebBrowser to open (local) html file and using MSHTML to get

text
from <body> part of html file.

[ Code ]
// create DocumentClass object by casting
mshtml.HTMLDocu mentClass webPage =
(mshtml.HTMLDoc umentClass) this.axWebBrows er1.Document;
// get text out of DocumentClass object
this.rtfBox.Tex t = webPage.body.in nerHTML;

[ New Problem ]
I have referenced WebBrowser and MSHtml in my solution. I see InterOp
working here and creating axWebBrowser for me so that I can use it. Now
if

I
deploy this project some place then do I need to worry about these files
being installed (with the correct version I am referencing to) or I need

to
install these files and register them in registry in the target machine?

Not
to over lap my first question, is there a better way then my solution?

Thanks,
Chang


Nov 16 '05 #3

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

Similar topics

2
1677
by: xcomm | last post by:
Hi All, <?php $vars= array("_SERVER","_SERVER","_SERVER","_SERVER","_SERVER","_SERVER"); foreach($vars as $var) { if(isset($$var))echo("$var: ${$var}<br>\n"); } ?> php.net:
1
2280
by: student | last post by:
while compiling on: SunOS 5.8 Generic_108528-27 sun4u sparc SUNW,Sun-Fire-280R I get the following error: Undefined first referenced symbol in file matrixi_ tst.o ld: fatal: Symbol referencing errors. No output written to a.out
2
11520
by: sreddy | last post by:
I am trying to write a sql query on self referencing table. Just to brief ..Database is related to a Hiring department of the Qwest company. I need to generate a Report used by in HR department to pay the employees who have referred the candidates for the jobs in their .. This report is used by the HR department to get the required
2
8045
by: Simon | last post by:
Am using the following code. <script language="JavaScript1.2"> function setquantity(productindex,productquantity) { //create the reference object irefname_none = eval("document." + productindex + "none"); <snip>
6
2461
by: jstaggs39 | last post by:
I want to create a Dcount and an If...Then...Else statement to count the number of records in a table based on the date that is entered to run the form. The If....Else statment comes in because if the amount of records for a particular date is positive, i want the form to stop running, if there are no records that contain the date in question, then it should continue to run the form. The problem i'm having is referencing the date that is...
6
2470
by: Mikey_Doc | last post by:
Hi We are running cms 2002, Framework 1.0 with Visual studio 2002. We have just upgraded to Framework 1.1 and visual studio 2003. All of our database connection strings are stored within the machine config, this was necessary as our web site has 4 environments and the database server has a different name in each. Since the upgrade the applications can't read the strings in the
3
3849
by: gary | last post by:
Hi, I am trying to reference an anchor in a user control with a url. This worked in 1.1 but no longer works in 2.0. The ascx control is located in a "/include" folder If you have a hyperlink control and you assign the navigateurl property = "../#anchor" whereby you want to add this # reference to the current url the url ends up with the #anchor twice.
9
1588
by: Brett Romero | last post by:
Say I have a library (A.dll) with a method that accepts a collection of a specific type. The type is defined in B.dll. In A.dll, I need to loop through this collection and reference fields of the type. For example, a Person type. It may have arm, leg, feet, and hands. Hands is a collection containing types of fingers. The only way to get at fingers is by accepting the parameter as its true type. This means I'll need a file...
1
2364
by: Tim F | last post by:
Problem: I'm receiving the error "File or assembly name XXXXX or one of its dependencies, was not found." when trying to execute code in an assmebly that has both a strong-name and has been installed into the GAC. We originally had this assembly without a strong-name and we were successfully using it by referencing it when it was NOT in the GAC. The assembly was built using the 1.0 framework and we were able to call it from both 1.0...
0
8352
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8697
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8465
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8579
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7297
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6158
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5612
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4283
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1909
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.