combit List & Label 27 - .NET Help
combit.Reporting.Dom Namespace / ProjectBase Class / GetFromParent Method

In This Topic
    GetFromParent Method
    In This Topic

    Allows to directly modify the project currently in use, e.g. after starting a print job. If a project is already opened, it will be closed. In databound mode this method has to be called in the context of the DefinePrintOptions Event (see below), as that is the exact point where the print project is opened and initialized.

    Public Sub GetFromParent() 
    public void GetFromParent()
    void GetFromParent(); 
    private void LL_DefinePrintOptions(object sender, EventArgs e)
        // Create new DOM project of type LlProject.List
        ProjectList proj = new ProjectList(LL);
        // No proj.Open() is required. Instead the project of the component is used
        // Get Text object "Headline"
        ObjectText text = (ObjectText)proj.Objects["Headline"];
        // Create new paragraph
        Paragraph paragraph = text.Paragraphs.AddNew();
        paragraph.Font.SetFont(new Font("Courier New", 12));
        paragraph.Contents = "'Added text'";

    Platforms: Windows 8.1, Windows 10 (Version 20H2 - 21H2), Windows 11 (21H2), Windows Server 2012 - 2022

    See Also