Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Print Report Title / Footer
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Print Report Title / Footer

 Post Reply Post Reply
Author
Message
John31 View Drop Down
Groupie
Groupie
Avatar

Joined: 08 December 2005
Location: United States
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote John31 Quote  Post ReplyReply Direct Link To This Post Topic: Print Report Title / Footer
    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
Back to Top
Peter59 View Drop Down
Groupie
Groupie


Joined: 19 July 2007
Status: Offline
Points: 61
Post Options Post Options   Thanks (0) Thanks(0)   Quote Peter59 Quote  Post ReplyReply Direct Link To This Post 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

Product: Xtreme SuitePro (ActiveX) version 11.2.2/12.0.1
Platform: Windows 2K
Language: Visual Basic 6.0 SP6
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.