Pages

Friday 6 May 2011

Rotate any text in foxpro

5 comments:

  1. Control.Rotation [= nValue]

    notes:--

    -> (nValue means how much angle u want to move)

    -> Rotation works only with TrueType fonts. Certain font settings such as FontStrikethru might not display properly at certain angles.

    -> Rotation is not supported when the Style property is set to 3 (Themed) because the label text is drawn by the theme. For more information, see Style Property.

    -> The WordWrap property is supported only when Rotation is set to 0. In other words, if Rotation is set to a value other than 0, no wordwrapping occurs even if WordWrap is to True (.T.). For more information, see WordWrap Property.

    -> The AutoSize property does not resize the control based on the Rotation setting. Text is always centered in the label. Therefore, it is recommended that you make sure the label is large enough to accommodate for any rotation position. For more information, see AutoSize Property.

    -> Hotkeys (\<) specified in the Caption property do not display, though they remain functional, when labels are rotated. For more information, see Caption Property (Visual FoxPro).

    ReplyDelete
  2. An easy way is having two reports. That is report1.frx configured to print portrait and report2.frx configured to print landscape.

    Another little bit harder way is using OLE programming to export results to Excel in two tabs, first will be setup to print in portrait orientation and second tab landscape using this command:
    oExcel.ActiveSheet.PageSetup.Orientati… = n
    where n=1 is portrait, n=2 is landscape.

    I'm not sure you can change orientation from portrait to landscape on runtime mode.

    hope it helps you.

    ReplyDelete
  3. in fox pro. only dude we know how 2 use excel

    ReplyDelete
  4. फाक्स प्रो से तो कोई सम्पर्क नहीं रहा कभी…

    ReplyDelete
  5. k to cybotech k guruoo ne to padha hoga unse pucho........forward dis link via mail

    ReplyDelete