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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem using IOleCommandTarget

Status
Not open for further replies.

timw

Programmer
May 3, 2000
1,264
GB
I'm overriding the Internet Explorer 5.5 Print Template using a call to lOleCommandTarget:-

lpOleCommandTarget->Exec(NULL, OLECMDID_PRINTPREVIEW, OLECMDEXECOPT_PROMPTUSER, &vTemplatePath, NULL);

where the path to the print template is held in the VARIANT vTemplatePath. This seems to work okay on my NT4 platform, but not on Win98 or any of the others.

I've a suspicion that this functionality is only supported on NT, but the Microsoft docs around this area are ambiguous when it comes to compatibility. Thing is, I need this to work on as many platforms as possible as it's my 'last ditch' attempt at printing html headers on all pages printed from a browser control.

Can anyone shed some light on this?

Thanks,
Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top