Print Page | Close Window

Print Report Title / Footer

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=11332
Printed Date: 20 September 2024 at 10:42am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Print Report Title / Footer
Posted By: John31
Subject: Print Report Title / Footer
Date Posted: 07 July 2008 at 6:01pm

In the report control is it possible to set a print title / header / footer?

The .PrintReport2 option works great, but it would be nice to be able to put a header and or footer on each page that prints.  Likewise when accessing via PrintPreview. 
 
I know you can do a PrintPreviewOptions.Title but it does not print.
 
TIA
 


-------------
Regards

John Layton



Replies:
Posted By: Peter59
Date Posted: 08 July 2008 at 1:18am
Hi,

take a look at the ReportPrintOptions object, for example

   With wndReportControl.PrintOptions
        .Landscape = True
       
        .MarginTop = 800
        With .Header
            .Clear
            .FormatString = "ReportControl Demo" & vbCrLf & _
                            "&bDemo data not filtered" & _
                            "&bPage &p of &P"
        End With
        With .Footer
            .Clear
            .FormatString = "Printed at: &D &T" & vbCrLf & "Printed by: username" & _
                            "&bConfidential data - for your eyes only" & _
                            "&b(c) mega company"
        End With
    End With

    wndReportControl.PrintReport2 TRUE


This works good for me.

If your issue is solved, please add SOLVED in your Topic description and have a look at post http://forum.codejock.com/forum_posts.asp?TID=11225 - http://forum.codejock.com/forum_posts.asp?TID=11225

Product: Xtreme SuitePro (ActiveX) version 11.2.2/12.0.1
Platform: Windows 2K
Language: Visual Basic 6.0 SP6



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net