in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Samples (updated June 12, 2008)

Last post 05-26-2008 2:58 PM by C1_Dima. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 03-19-2008 4:03 PM

    Samples (updated June 12, 2008)

    I thought I'd start a separate sticky thread for easy access to samples. As time goes by I will be adding more samples here. Everybody else is more than welcome to add their own interesting samples as replies to this post. You may also reply with sample-related questions, but I reserve the right to trim or delete such replies to keep this thread concise and to the point.

    • TagsSample.zip - shows how to use tags to update a document's content after it has been created.
    • OverlaySample.zip - shows the use of overlay and watermark.
    • SubDocuments.zip - shows how to make sub-documents, with their own internal page numbering.
    • ToolbarButtonsOverride.zip - shows how to override the default preview toolbar buttons' actions, or hide some buttons altogether.
    • TocInLongDoc.zip - shows how to generate a complex TOC (with headers that are not hyperlinks) and put it in front of a document.
    • SubDocuments2.zip - based on SubDocuments above, shows how to mark some objects when the document is created, and then in the generated document find pages containing those objects. Also shows how to use PrintManager to send a document to printer directly.
    • MousePositionOnPage.zip - shows how to use C1PreviewPane.ClientToDocument to convert preview control's client coordinates into document page number and position on that page.
    • InvoiceSample.zip - shows one way of building an invoice-like document.
    Cheers,
    Dima.
  • 05-24-2008 12:40 AM In reply to

    • rkamp
    • Not Ranked
    • Joined on 06-06-2006
    • Posts 5

    Re: Samples (updated Apr 2, 2008)

    Dima,

    Thanks for the nice examples.  Is the any way to render the text of the Watermark or Overlay as an outline of the font?     This watermark is a bit intrusive if there is a lot of graphics on the page.

     

    Regards,

    Rick

  • 05-26-2008 2:58 PM In reply to

    Re: Samples (updated Apr 2, 2008)

    C1Preview does not provide its own "outline text" feature (such as a style property for example), but it is easy to draw outlined text using GDI+ into a RenderGraphics object, and then use it as the watermark. Attached is a small sample, with GDI+ code taken from the Bob Powell's GDI+ FAQ. Hope this helps.

    Cheers,
    Dima.
Page 1 of 1 (3 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.