in

C1 Community

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

Browse by Tags

  • Calculate Height of Text after RenderRichText

    We change our Print-Preview from VB6 to vb.net c1Preview Version 2.0.20072.42005. For Formulardesign we have our own Listgenerator. So I must print different kinds of objects in succession. This works fine with RenderImage, Renderline, Rendertext..., but not with RenderRichText. There is a pagebreak...
    Posted to Preview for .NET (Forum) by M258HBCXFE6D on 02-19-2008
    Filed under: C1Preview, C1PrintDocument
  • Re: Calculate Height of Text after RenderRichText

    Hi, thanks for response. I try CalcSize(Unit.Auto, "1Mm") but I always get the same value for Height for different RTF-Files. There are different values when I try CalcSize(Unit.auto, unit.Auto), but the Value is (after conversion) not the real size of the text.
    Posted to Preview for .NET (Forum) by M258HBCXFE6D on 02-20-2008
    Filed under: C1Preview, C1PrintDocument
  • Re: Calculate Height of Text after RenderRichText

    Thanks, it works. I have misunderstood your first reply. Is there also a possibility to get the Y Position of the current page after the RTF Text is rendered. I try m_C1DOC.Body.Document.CurrentPage.Y but the Value returned is 0. The vsview7 have a Proberty for this. regards
    Posted to Preview for .NET (Forum) by M258HBCXFE6D on 02-21-2008
    Filed under: C1Preview, C1PrintDocument
  • Y-Position of Currentpage after RenderArea/RenderRTFText

    I render a long RTF-Text via RenderArea or RenderRichText. When the Text ends e.g. on the second or third Page I need the excact Y-Positon of the last line or the next new line. We use our own Formulardesigner and I must calculate the Position of the next object with values from the c1Preview in conjunction...
    Posted to Preview for .NET (Forum) by M258HBCXFE6D on 02-21-2008
    Filed under: C1Preview, C1PrintDocument
  • Re: Calculate Height of Text after RenderRichText

    Hi, thanks for reply. I try the code from your example in my project and it works fine, but there is one exeption Each of my RenderRichText have there own Mesurements rr.X = uLeft, rr.Y = uTop and rr.Width = uWidth. The Height I get with calcsize and it works fine. But, when I get a Pagebreak the Height...
    Posted to Preview for .NET (Forum) by M258HBCXFE6D on 02-28-2008
    Filed under: C1Preview, C1PrintPreviewControl, C1PrintDocument
  • Re: Problems with RTF - Text

    Hi Dima, thanks for reply! My Problem: If there is a pagebreak in an RTFText (see the sample below) one part of the text is on the fist page, and the other part is on the second page. I need the Height of the piece of RTFText from the second page or better the CurrentY-Position (like in the VSView8.OCX...
    Posted to Preview for .NET (Forum) by M258HBCXFE6D on 02-28-2008
    Filed under: C1Preview, C1PrintPreviewControl, C1PrintDocument
  • Overlay method

    Will you please send the example code for C1PrintDocument.PageLayout.Overlay method? What I want is the same functionality as startoverlay in vsprinter. I would like to go back to specific page and change the page content after the document is generated.
    Posted to Preview for .NET (Forum) by Shaila Shah on 03-18-2008
    Filed under: C1Preview, C1PrintDocument
  • StartOverlay EndOverlay same as VsPrinter

    Is there any method for C1Printdocument same as startoverlay and endoverlay for VsPrinter? My old program prints new content at specific location on speicific page depends on what was printed on that page while the document was being generated. It does that after docuement is generated using startoverlay...
    Posted to Preview for .NET (Forum) by Shaila Shah on 03-19-2008
    Filed under: C1Preview, C1PrintDocument
  • Re: Pages collection

    Thanks Dima for prompt reply, It worked like a charm. Now I can get page indexes for the services I want to print. but I want to send those pages to the physical printer without user clicking on the printer button on printpreview control. Is it possible? Thanks, Shaila
    Posted to Preview for .NET (Forum) by Shaila Shah on 03-28-2008
    Filed under: C1Preview, C1PrintDocument
  • Problems with RTF - Text

    When a Pagebreak occours during the rendering of an RenderRichText the text ist printed on the top of the new page. How can I set the information of the y position of the text on the new page. I have made a screenshot to show my Problems. Regards
    Posted to Preview for .NET (Forum) by M258HBCXFE6D on 02-21-2008
    Filed under: C1Preview, C1PrintDocument
Page 1 of 2 (11 items) 1 2 Next >
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.