locked
Textalignment always LEFT for VB5-program under Win 7 RRS feed

  • Question

  • Hello,

     

    after installing an old VB5-Program on Windows 7, all text in reports are placed with text-alignment: left (the fixed point is correct so the layout of each report is corrupt).

    There is no difference between the PreviewDialog (seems like old gdi+ VB-PrintPreviewDialog) and the printed version of a document.

    Sample: Col1=alignment:left / Col2=alignment:right / Col3=alignment:right
    
    shouldbe like this:
    column1	100,00 €  10,00 €	
    column1 	 10,00 € 100,00 €
    ...
    |->          <-|     <-|
    
    but looks like this:
    column1		  100,00 € 10,00 €	
    column1		  10,00 €	 100,00 €	
    ...
    |->            |->     |-> 


    I tried all compability-modes, but this doesn't work. It makes also no difference if installed on x86 or x64.


    Does anybody have an idea, what could be wrong or how to fix this behavior?

     

    Thanx for any idea,

    St. Senff


    • Edited by StSenff Thursday, June 30, 2011 4:47 PM fixed format
    Thursday, June 30, 2011 4:44 PM

Answers

  • Hi StSenff,

    VB5 is an old program. what's the version of your Windows 7?

    I suggest you install the Windows XP Mode, then install this VB5 application in Windows XP Mode.

    Regards,

    Miya


    This posting is provided "AS IS" with no warranties, and confers no rights. | Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    • Marked as answer by StSenff Monday, July 11, 2011 2:01 PM
    Monday, July 4, 2011 6:28 AM
  • If you want to use an old Visual Basic 5 program, the best solution in my opinion is virtualization: if you run Windows 7 Professional or Ultimate, download and install Windows Virtual PC with XP Mode (http://www.microsoft.com/windows/virtual-pc/download.aspx) to have a 32 bit Windows XP Professional SP3 environment to run you old applications.
    You could also use a virtualization program, like Microsoft Virtual PC 2007 SP1 (http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=24439) or Oracle VirtualBox (http://www.virtualbox.org), create a virtual machine and install the Windows version you need to run your program; remember that you must have valid Retail licenses for any operating system that you want to virtualize.

    Bye.


    Luigi Bruno
    • Marked as answer by StSenff Monday, July 11, 2011 2:00 PM
    Monday, July 4, 2011 2:23 PM

All replies

  • Hi StSenff,

    VB5 is an old program. what's the version of your Windows 7?

    I suggest you install the Windows XP Mode, then install this VB5 application in Windows XP Mode.

    Regards,

    Miya


    This posting is provided "AS IS" with no warranties, and confers no rights. | Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    • Marked as answer by StSenff Monday, July 11, 2011 2:01 PM
    Monday, July 4, 2011 6:28 AM
  • If you want to use an old Visual Basic 5 program, the best solution in my opinion is virtualization: if you run Windows 7 Professional or Ultimate, download and install Windows Virtual PC with XP Mode (http://www.microsoft.com/windows/virtual-pc/download.aspx) to have a 32 bit Windows XP Professional SP3 environment to run you old applications.
    You could also use a virtualization program, like Microsoft Virtual PC 2007 SP1 (http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=24439) or Oracle VirtualBox (http://www.virtualbox.org), create a virtual machine and install the Windows version you need to run your program; remember that you must have valid Retail licenses for any operating system that you want to virtualize.

    Bye.


    Luigi Bruno
    • Marked as answer by StSenff Monday, July 11, 2011 2:00 PM
    Monday, July 4, 2011 2:23 PM