Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2167
Printing Sample
posted

Where is there a sample of how to put elements together for printing? 

I am looking for a code sample showing me how to put the output of a webgrid along with maybe an HTML header and footer to a PDF.

 

Parents
No Data
Reply
  • 37774
    Verified Answer
    posted

    I can't really speak for the web aspect of things, since I'm a Windows Forms developer, but I would think that the WebGrid exports its contents to an ISection of a Report object.  Assuming that you receive a handle to this ISection object, you have the ability to add a Header or Fotter object yourself.  The Documents engine does not support parsing HTML, however, so you would have to do this yourself in order to apply appearances to those objects.  The IText element has a limited ability to parse HTML tags that describe the text it shows; you can use the AddRichContent method for this.

    As for samples, I believe the SDK comes with samples for the Documents engine showing how to use the various elements, though again I can't speak for the web SDK; I would think that it should be included.

    -Matt

Children