VSPrinter/Table: Multirow header on each page

Originally Posted 31 March 2016, 5:31 am EST

  • Originally Posted 31 March 2016, 5:31 am EST

    Hi,


    I have an issue regarding my Work with the VSPrinter control. I try to print a table, which goes over more than one page, with its header on the top of every page.
    I know this is generally possible with the .AddTable() Method, but my Header is a multi Row Header with different formatted Rows, which I create by using the .TableCell Method
    to build my Table.

    My first choice was to intercept the NEwPage() or EndPage() events, but imho they are fired after the whole table is build?

    How can I intercept in the table building process, in the moment, when the table reaches an end of a single page?

    I'm really loooking forward for your help, thanks in advance

    Sincerely,

    SDKTeam
  • Marked as Answer

    Reply

    Hi Stefan,

    NewPage and EndPage events would be best suited for your requirements as they fire when the page starts and finishes rendering respectively. You can use the NewPage event to print custom headers and footers or to add text and graphics that will overlay the contents of the page. When the NewPage event is fired, the page is still blank. Please refer to the following documentation links for more information on these events:
    http://helpcentral.componentone.com/nethelp/vsview8/webframe.html#newpageevent.html
    http://helpcentral.componentone.com/nethelp/vsview8/endpageevent.html

    Since you want to print multi row headers in the table of your document, I would also suggest you to refer to the product sample 'MultiRowHdr'. It will be installed on the following location on your machine if you choose the default installation path:
    C:\Users\UserName\Documents\ComponentOne Samples\VSView 8.0\VB\MultiRowHdr

    Thanks and Regards,
    Pragati Kaushik
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels