Re: abc's output file templete

From: Steve Schapel (schapel_at_mvps.org.ns)
Date: 11/02/04

  • Next message: GW: "Re: Macro - RunSQL"
    Date: Tue, 02 Nov 2004 14:58:44 +1300
    
    

    Steve

    No, you can't save a report as a template. A template is an HTML file.
      To quote from a couple of the relevant Help topics:

    About HTML template files
    You can use one or more HTML template files to enhance the appearance,
    consistency, and navigation of your static HTML and server-generated
    HTML files. For example, you might want to include a company logo in the
    header section, a company-approved background image in the body section,
    and your own navigation buttons in the footer section of a static HTML
    report.

    An HTML template is a text file that includes HTML tags and tokens that
    are unique to Microsoft Access. These tokens indicate where to insert
    output and other information in the static HTML or server-generated HTML
    files. See an example of an HTML template file.

    When you output a table, query, form, or report, and you specify an HTML
    template file in the associated Output Options dialog box, Microsoft
    Access merges the HTML template file with the .html, .asp, and .htx
    output files by replacing the tokens with the following.

    HTML template token Replacement

    <!--AccessTemplate_Title--> The name of the table, query, form, or
    report placed in the title bar of the Web browser
    <!--AcessTemplate_Body--> The output of the table, query, form, or report
    <!--AccessTemplate_FirstPage--> An HTML anchor tag that links to the
    first page of a report
    <!--AccessTemplate_PreviousPage--> An HTML anchor tag that links to the
    page previous to the current report page
    <!--AccessTemplate_NextPage--> An HTML anchor tag that links to the next
    page after the current report page
    <!--AccessTemplate_LastPage--> An HTML anchor tag that links to the last
    page of a report
    <!--AccessTemplate_PageNumber--> The current page number

    HTML template file example
    <HTML>

    <!--The following token places the object name in the title bar of the
    Web browser.-->

    <TITLE><!--AccessTemplate_Title--></TITLE>

    <!--The following HTML tag creates a different background color than the
    Web browser default.-->

    <BODY BACKGROUND = "gray.jpg">

    <!--The following token places all object output inside the <BODY> tag.-->

    <!--AccessTemplate_Body-->

    </BODY>

    <BR><BR>

    <!--The following four tokens create four navigation text buttons that
    jump to the first, previous, next, and last pages of a report.-->

    <A HREF = "<!--AccessTemplate_FirstPage-->">First</A>

    <A HREF = "<!--AccessTemplate_PreviousPage-->">Previous</A>

    <A HREF = "<!--AccessTemplate_NextPage-->">Next</A>

    <A HREF = "<!--AccessTemplate_LastPage-->">Last</A>

    <!--The following token inserts the text "Page n" , where n is the
    current report page number.-->

    <P ALIGN = CENTER>Page <!--AccessTemplate_PageNumber-->.</P>

    <!--The following HTML tag adds a company logo to the bottom of the Web
    page.-->

    <IMG SRC = "company_logo.jpg">

    </HTML>

    -- 
    Steve Schapel, Microsoft Access MVP
    111 wrote:
    > Thank's Steve,
    > in Access it says you can use reports as templetes. that is what i tried to do. 
    > I created a report with a logo and some special formating and tried to save it 
    > as a templete. It seems either i'm saving it incorrectly or this isnt' possible 
    > to begin with???
    > 
    > Can you walk me though the steps required to save a report as a templete?
    > Thanks
    > Steve
    > 
    

  • Next message: GW: "Re: Macro - RunSQL"