Forum Discussion

JShoemaker's avatar
JShoemaker
New Contributor III
2 years ago

Top Margin on a PDF

Hi, We have adjusted the top margin to all kinds of numbers, however it still doesnt seem to shrink. I have removed the log from the extender rule but it seems like there is a margin default. I have...
  • JackLacava's avatar
    JackLacava
    2 years ago

    Works for me on 7.4.2. Default margin:

    Setting top to zero:

    You can force further shrinkage (at your peril) to effectively pull up the actual table:

    As for blue bars: the thick one is PageHeaderLabelBar, the thin one is PageHeaderLine. We can suppress both like this:

    Case Is = CVExtenderFunctionType.FormatReportUIItem
    	Dim uiItem As CVExtenderReportUIItem = args.Report.CurrentUIItem
    		If uiItem.UIItemType = XFReportUIItemType.PageHeaderLabelBar _
    			Or uiItem.UIItemType = XFReportUIItemType.PageHeaderLine Then
    		uiItem.Visible = False
    		Return uiItem
    	End If
    

    Unfortunately it's a bit hard at the moment to find documentation for this stuff, because Intellisense doesn't pick up CVExtenderReportUIItem properly (don't know why). The best resource is the API Guide in Windows Help format, which is not available after v.7.0 (and really the last properly-produced one is in 6.5).