text align display issue

Posted by: trimix on 4 August 2017, 3:12 pm EST

  • Posted 4 August 2017, 3:12 pm EST

    Im am running the same vb6 project on 2 xp machines and on one all is ok, on the other the text (headers) are not aligned correctly. Any idea?



    See attached image:

    Screenshot (top): All OK

    Screenshot (bottom): Header are not aligned correctly.



    PS! I scanned the forum, and the closest i got was changing the dpi to 101 on the maching - that did not solve it (both machines are running 96dpi)



    Thanx

  • Replied 4 August 2017, 3:12 pm EST

    Thanks for the quick response.

    The problematic machine was just installed yesterday... and i copied the actrpt2.dll from the well-working machine to the trouble maching and registred it with regsvr32.



    The difference between the two machines is that the the trouble machine got *no* installed software (clean), except whats needed to run the vb6 application.



    PS! I did a search, just to make sure and replaced the dll on the trouble maching and re-registered it - no help.



    PS2! I am using the latest and greates build!



    Thanks for help.
  • Replied 4 August 2017, 3:12 pm EST

    1.Default Printer. Try rpt.Printer.DeviceName = ''''

    2.It seems you use Left Alignment.Try Center.
  • Replied 4 August 2017, 3:12 pm EST

    Hi! Thanks for reply.



    1. No change. PS! Both machines have same default printer

    2. I am using center allready.



    Thanks
  • Replied 4 August 2017, 3:12 pm EST

    3. Regional Settings for Non-Unicode programs.

    4. Try Font Arial, Size 10.
  • Replied 4 August 2017, 3:12 pm EST

    Hi!



    Both machines had the same "non-unicode" setting. Played with some different settings, but no effect. Font change did not do it either.



    Thanx
  • Replied 4 August 2017, 3:12 pm EST

    Thank you for your question. Please ensure the problematic machine do not have different versions of the ActiveReports DLL registered somewhere on the system.  I recommend doing a system file search for any AR DLLs used by your project and ensure the version numbers match those on the machine that works well. Also, please ensure you are using the latest build available. You can find the update here:

    http://www.datadynamics.com/forums/37/ShowForum.aspx

    If this does not help could you please provide me with some additional details about the differences between the two machines? Also, if possible please provide a small running sample the can be used to reproduce the issue in a testing environment.

    Thanks,
        Eric

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels