Skip to Content

X-Position and Field Width in RAS SDK

It seems to me that following types of Conditional Formulas:

CrObjectFormatConditionFormulaTypeEnum.crObjectFormatConditionFormulaTypeDeltaX and CrObjectFormatConditionFormulaTypeEnum.crObjectFormatConditionFormulaTypeDeltaWidth

return NULL in RAS SDK, the same as "Display string" did in this problem:

I could reproduce the problem with the same steps as in the ticket above.

I am using 13.0.25 Version of SDK

Is it a known problem, or am I missing something?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jul 23, 2020 at 08:02 PM

    You are looking at this the wrong way, use the Object to change the position.

    First you get the type, and then you change the x/y using the type:

    Get my Parameter Test app from here:

    In that app it has a drop down box to get various objects.

    Look in here:

    private void ReportObjectComboBox1_SelectedIndexChanged(object sender, EventArgs e)

    For example the text object has these parts and that's what you want to use to move an object:

    rptObj1.Left = //Number in Twips 1 inch = 1440 twips
    rptObj1.Top = //Number in Twips 1 inch = 1440 twips
    // objects reference point is the top left corner


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 21, 2020 at 05:18 PM

    The whole object is controlled by the X and Y values which is top left corner in twips.

    A condition formula has nothing to do with the object position.

    What are you trying to do?


    Add a comment
    10|10000 characters needed characters exceeded

    • It is possible to edit the formula for X Position Adjustment / Width Adjustment in CR Designer:

      I supposed that

      CrObjectFormatConditionFormulaTypeEnum.crObjectFormatConditionFormulaTypeDeltaX and CrObjectFormatConditionFormulaTypeEnum.crObjectFormatConditionFormulaTypeDeltaWidth

      that exist in RAS SDK should provide me access to these formulas through the API, but they do not: the call of it, for example:


      returns NULL even for the formulas that have something in them.

      kbhxz.png (39.9 kB)

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.