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.
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.