Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COM object

Status
Not open for further replies.

samooo

Programmer
Feb 4, 2004
1
US
Hi..... I want to write a COM object(in VC++) which has a method MyPrint(). I want to use the COM object from javascript in following way:

var printer = CreateObject("MyPrintCOM");
printer.MyPrint();

I will be using the script in HTML displayed in IE 6.0

How can I get the browser document in COM? Or say... what do i need to do if I want to print the text that is being displayed in the current HTML page.

PS: I dont want to use javascript window.print method because I want to modify the print style in some way.

Thanks.
 
Take a look in OLE/COM oblect viewer or in VB object browser to see all methods exposed by browser to OLE clients.

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top