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!

Printing from a TwebBrowser

Status
Not open for further replies.

michaenh

Programmer
Aug 7, 2002
205
NO
I am pretty newbies in Delphi and I have used a TwebBrowser component in my app. I am trying to print its objects.
The code is:
WebSkjema.ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER);

It works but when I choose cancel instead of print I get a followed message:
- Trying to revoke a drop target that has not been registered

Any suggestions anyone?

Best regards,
MHA
 
Solve the problem...

try
WebSkjema.ExecWB(OLECMDID_PRINT,OLECMDEXECOPT_PROMPTUSER);
except
//
end;

Michael
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top