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

printer templates in vc6 not working for me

Status
Not open for further replies.

mgriffith

MIS
Jul 3, 2001
177
US
check out
it includes a sample vc6 application for using print templates....i need to use print templates in an application that i'm doing right now, but i can't seem to get this example to run right...it compiles fine, but when i go to open the print preview, where the template should be parsed, nothing happens...is it maybe because i'm using ie6?

they include an online example of the same thing, and i can't even get that to run....can anyone else?

does anyone know any other resources for how i can figure out how to actually use a print template...i can create them fine (docjavascript has a great resource for this), but i get permissions errors when i try to print them straight from internet explorer...i've tried renaming it to .hta, because i thought html applications were supposed to be fully trusted, but i still get the same permissions errors when trying to access the printer object

thanks. [afro] mike griffith
----------------------------
mgriffith@lauren.com
mdg12@po.cwru.edu
 
ok i got it mostly working....i'm still having a few problems with stupid things (i'm pretty sure it's just ie6)...if anyone wants the source code, just holler

here's what version 1 does:
i basically put an instance of this object anywhere on the page, and then (on some event, like a button click), i call a function from the object, like document.all.printobject.IEPrint("specifiying the absolute path to the template, and it runs (opens up the print preview screen)! your print template can either have the contentsrc as 'document' to print the calling page, or any other url, and it should work fine...i'm having some difficulty with multi-page complex print templates, but that has nothign to do with the com object. mike griffith
----------------------------
mgriffith@lauren.com
mdg12@po.cwru.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top