print template in ASP



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

.



Relevant Pages

  • Print templates in ASP
    ... I built a template of my own - let's say its location is in ... Can u plz explain me how 2 do it? ...
    (microsoft.public.vb.general.discussion)
  • Print templates in ASP
    ... I built a template of my own - let's say its location is in ... Can u plz explain me how 2 do it? ...
    (microsoft.public.vb.controls.internet)
  • Re: Memory problem or Excel limitation
    ... the variables names are in french. ... 4- The application is built for french and english users so a lot of code ... > Daily Dose of Excel ... >> The main loop in the program opens a template, ...
    (microsoft.public.excel.programming)
  • Cant open Word 97 doc in Word XP
    ... It contains graphics and tables and looks ... like it was originally built from a template. ... ModVer 10.0.6714.0 ...
    (microsoft.public.word.application.errors)
  • Word 97 doc wont open in Word XP SP3
    ... It contains graphics and tables and looks ... like it was originally built from a template. ... ModVer 10.0.6714.0 ...
    (microsoft.public.word.application.errors)