Skip to Content

Add TextObject at runtime with correct size

Hi,

I am working on web application (MVC). I use crystal report for .net.

I need create a TextObject at runtime, say, the text is "abcjY".

I can get client's screen size in pixels with javascript, but I don't know how to get the size in mm or inch. But Crystal report use twips as measuring unit (1 inch = 1440 twips). So I don't know how many taps I should assign to the TextObject width and height.

Is there any way to solve the issue? Like set the TextObject width and height with pixels rather than the twips?

Thank you.

Peter

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Oct 28, 2015 at 04:49 PM

    Hi Peter,

    Add the object and then open the report in CR Designer, you can then select the text object and show size and position. from there you can determine how twips convert to pixels.

    Or even easier is to search the WEB, there are all sorts of listing for converting twips to pixels.

    Don

    Add comment
    10|10000 characters needed characters exceeded