none
How can I change the location of a TextBox in a rdlc report at runtime? RRS feed

  • Question

  • Hello,
    How can I change the location (Top, Left) of a TextBox in a rdlc report at runtime?
    I am trying with the following code:

                    XmlDocument doc = new XmlDocument();
                    doc.Load("RPSALDInvoice.rdlc");
                    StringBuilder xpathExpression = new StringBuilder();
                    xpathExpression.Append("/Page/PageHeader/ReportItems[@Name='");
                    xpathExpression.Append("Textbox");
                    xpathExpression.Append("']");
                    XmlNode node = doc.SelectSingleNode(xpathExpression.ToString());

    The variable "node" always returns null.
    Please, can you help me how I should find a report item and change some of its properties.
    Thank you.


    Zamuriano



    Wednesday, March 29, 2017 6:55 PM