in

C1 Community

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

Problems to Print C1FlexGrid 2.0

Last post 09-04-2007 1:52 PM by ednaldo_soares. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 09-04-2007 1:52 PM

    Problems to Print C1FlexGrid 2.0

    hi personal... 
    I was looking at the forum trying to find a solution for my problem. 
    I want to send for a control C1.C1Preview 2.0 my FlexGrid, so that it can print. 
    I found the following code in the forum...
     

    Dim c1doc As C1PrintDocument = New C1PrintDocument
    Dim rPrintable As RenderC1Printable = New RenderC1Printable()
    Dim printer As New C1FlexGrid.C1FlexGridPrintable(C1FlexGrid1)
    printer.PrintInfo.PageBreak = PageBreaksEnum.OnColumn
    rPrintable.Object = printer
    rPrintable.SplitHorzBehavior = SplitBehaviorEnum.SplitIfNeeded
    rPrintable.Width =
    "auto"
    c1doc.StartDoc()
    c1doc.RenderBlock(rPrintable)
    c1doc.EndDoc()

    More this same code shows me mistakes informing that no this declared, 
    "C1FlexGrid.C1FlexGridPrintable" and this line "PageBreaksEnum" 
    do I need to import some imports for him is recognized again???

    I am directing an image of my code

    Ednaldo Soares

     

    Filed under:
Page 1 of 1 (1 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.