print template in ASP
- From: "Amir" <amir.tatarsky@xxxxxxxxx>
- Date: 18 May 2006 00:37:59 -0700
Hi all,
My problem related to Print
templates(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnie55/html/beyondprintpreview.asp)
I built a template of my own - let's say its location is in
"C:\Inetpub\wwwroot\UI\Template.htm".
I want to use it from my asp and tried to do so by:
<OBJECT ID="WB" WIDTH=0 HEIGHT=0
CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"
VIEWASTEXT></OBJECT>
<SCRIPT LANGUAGE="VBScript">
Sub SetTemplate
dim tmpltPath
tmpltPath = "C:\Inetpub\wwwroot\UI\Template.htm"
OLECMDID_SETPRINTTEMPLATE = 51
OLECMDEXECOPT_DODEFAULT = 0
WB.ExecWB OLECMDID_SETPRINTTEMPLATE,
OLECMDEXECOPT_DODEFAULT , tmpltPath
End Sub
</SCRIPT>
I get an error which tells about not support problem.
Can u plz explain me how 2 do it?
thanks a lot
.
- Follow-Ups:
- Re: print template in ASP
- From: Igor Tandetnik
- Re: print template in ASP
- Prev by Date: Change UserAgent without MFC
- Next by Date: Re: print template in ASP
- Previous by thread: Change UserAgent without MFC
- Next by thread: Re: print template in ASP
- Index(es):
Relevant Pages
|
|