Description
Sets an even odd template for the document and returns a new EvenOddTemplate object.
Return Type
An EvenOddTemplate object.
Remarks
This class can be used to define a template that can contain separate information to go on even and odd pages.
Example
[ASP - VBScript]
<% Dim MyDocument Dim MyPage Dim MyPageOne Dim MyPageTwo Set MyDocument = Server.CreateObject( "DynamicPDF.Document" ) Dim MyDocTemplate Set MyDocTemplate = MyDocument.SetEvenOddTemplate ' Create a Group for Odd Page Dim MyOddGroup Set MyOddGroup = MyDocTemplate.OddElements() MyOddGroup.AddPageNumberingLabel "Odd Page %%CP%% OF %%TP%%", 150, 200, 180, 40 ' For the Even Page Dim MyEvenGroup Set MyEvenGroup = MyDocTemplate.EvenElements() MyEvenGroup.AddImage Server.MapPath( "Images/ceTeSoftware_top.gif" ), 150, 220, 50 ' Add a object which will appear on every page MyDocTemplate.AddImage Server.MapPath( "Images/DynamicPDF_top.gif" ), 30, 30, 30 MyDocument.AddPage() MyDocument.AddPage() MyDocument.AddPage() MyDocument.DrawToWeb Set MyPage = Nothing Set MyDocument = Nothing %>
|
See Also
Document Object
© Copyright 2007, ceTe Software