Hello,
Try the following code:
Dim ps As PrintingSystem
Dim WithEvents link As PrintableComponentLink
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles Button1.Click
ps = New PrintingSystem
link = New PrintableComponentLink(ps)
Dim FtMiddleColumn As String = "Page [Page # of Pages #] Pages"
' Create a PageHeaderFooter object and initializing it with the link's PageHeaderFooter.
Dim Phf As PageHeaderFooter = link.PageHeaderFooter
link.Component = Me.xgd
link.EnablePageDialog = True
' Clear the PageHeaderFooter's contents.
Phf.Footer.Content.Clear()
' Add custom information to the link's header/footer
With Phf.Footer
.Content.AddRange(New String() {"", FtMiddleColumn, ""})
.Font = New Font(Phf.Header.Font, FontStyle.Bold)
End With
link.CreateDocument()
ps.PreviewFormEx.ShowDialog(Me)
End Sub
Private Sub CreateMarginalFooterArea(ByVal sender As Object, ByVal e As CreateAreaEventArgs) _
Handles link.CreateMarginalFooterArea
Dim gr As BrickGraphics = e.Graph
Dim brick As LineBrick = gr.DrawLine(New PointF(0, 0), _
New PointF(link.PrintingSystem.PageSettings.UsablePageSize.Width, 0), Color.Black, 2)
brick.BorderWidth = 0
End Sub
BTW, it seems to me that you've got confused by the user name and the password fields when registering at this forum 
R&D, .NET Team.
PS. If you wish to receive direct assistance from our Support Team, use Support Center at http://www.devexpress.com/sc.