RichEdit problem with Delphi QuickReport App

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
fang
Level 1
Level 1
Posts: 8
Joined: Tue Dec 01, 2009 10:46 am

RichEdit problem with Delphi QuickReport App

Post by fang »

Hi All,

I have a proprietary Delphi application that uses QuickReports. I've gotten it to run in Wine 1.1.28-2.3-i586 running on openSUSE 11.2 64-bit. When the application runs, the TQRRichText boxes in the QuickReport don't populate with data. The only message I'm getting from Wine is "fixme:ntlm:ntlm_AcquireCredentialsHandleW AcquireCredentialsHandle: SECPKG_CRED_BOTH stub"

I've used winetricks to install comctl32, allfonts, riched20, vcrun6, vcrun2003, vcrun2005, vcrun2008, mdac27 and possibly some others.

I also installed the winbind package (3.4.2-1.1.3.1 both 32 & 64 bit) in Linux which I thought would fix the ntlm stuff.

Any suggestions?
Thanks...
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: RichEdit problem with Delphi QuickReport App

Post by vitamin »

fang wrote:When the application runs, the TQRRichText boxes in the QuickReport don't populate with data.
Do you actually have working printer? Can you print to it from notepad?
fang
Level 1
Level 1
Posts: 8
Joined: Tue Dec 01, 2009 10:46 am

Re: RichEdit problem with Delphi QuickReport App

Post by fang »

Yes, notepad prints just fine.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: RichEdit problem with Delphi QuickReport App

Post by vitamin »

fang wrote:Yes, notepad prints just fine.
Where is it getting that data from? DB? Something else?
fang
Level 1
Level 1
Posts: 8
Joined: Tue Dec 01, 2009 10:46 am

Re: RichEdit problem with Delphi QuickReport App

Post by fang »

Data comes from a Firebird database via ODBC. The database connection is working because other fields are being populated properly. It's only the RichEdit fields that are not getting data.
James McKenzie

RichEdit problem with Delphi QuickReport App

Post by James McKenzie »

fang wrote:
Data comes from a Firebird database via ODBC. The database connection is working because other fields are being populated properly. It's only the RichEdit fields that are not getting data.

Can you run the program from the terminal and post back any information
that you get?

If the output is large (>20 lines), please post the output to site like
PasteBin and post the URL instead.

Thank you.

James McKenzie
fang
Level 1
Level 1
Posts: 8
Joined: Tue Dec 01, 2009 10:46 am

RE: RichEdit problem with Delphi QuickReport App

Post by fang »

This was in my original post. The only thing I get is:

fixme:ntlm:ntlm_AcquireCredentialsHandleW AcquireCredentialsHandle: SECPKG_CRED_BOTH stub
fixme:ntlm:ntlm_AcquireCredentialsHandleW AcquireCredentialsHandle: SECPKG_CRED_BOTH stub
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: RichEdit problem with Delphi QuickReport App

Post by vitamin »

fang wrote:I've used winetricks to install comctl32, allfonts, riched20, vcrun6, vcrun2003, vcrun2005, vcrun2008, mdac27 and possibly some others.
Start with the new prefix and don't install any winetricks.
fang
Level 1
Level 1
Posts: 8
Joined: Tue Dec 01, 2009 10:46 am

Re: RichEdit problem with Delphi QuickReport App

Post by fang »

vitamin wrote:
fang wrote:I've used winetricks to install comctl32, allfonts, riched20, vcrun6, vcrun2003, vcrun2005, vcrun2008, mdac27 and possibly some others.
Start with the new prefix and don't install any winetricks.
What do you mean by "the new prefix"? I'm not finding a "new" command-line option.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: RichEdit problem with Delphi QuickReport App

Post by dimesio »

fang wrote:
vitamin wrote:
fang wrote:I've used winetricks to install comctl32, allfonts, riched20, vcrun6, vcrun2003, vcrun2005, vcrun2008, mdac27 and possibly some others.
Start with the new prefix and don't install any winetricks.
What do you mean by "the new prefix"? I'm not finding a "new" command-line option.
Delete or rename ~/.wine and reinstall your app without any winetricks.
fang
Level 1
Level 1
Posts: 8
Joined: Tue Dec 01, 2009 10:46 am

Re: RichEdit problem with Delphi QuickReport App

Post by fang »

dimesio wrote:
fang wrote:
vitamin wrote: Start with the new prefix and don't install any winetricks.
What do you mean by "the new prefix"? I'm not finding a "new" command-line option.
Delete or rename ~/.wine and reinstall your app without any winetricks.
I had to run a "winetricks mdac28" in order to get the BDE (required by a Delphi application using ODBC) configured.

When I run the application now I get:
fixme:richedit:ME_HandleMessage EM_FORMATRANGE: stub
fixme:richedit:ME_HandleMessage EM_FORMATRANGE: stub
fixme:richedit:ME_HandleMessage EM_FORMATRANGE: stub
fixme:richedit:ME_HandleMessage EM_FORMATRANGE: stub
fixme:richedit:ME_HandleMessage EM_FORMATRANGE: stub
fixme:richedit:ME_HandleMessage EM_FORMATRANGE: stub
fixme:richedit:ME_HandleMessage EM_FORMATRANGE: stub
fixme:richedit:ME_HandleMessage EM_FORMATRANGE: stub
fixme:richedit:ME_HandleMessage EM_FORMATRANGE: stub
fixme:richedit:ME_HandleMessage EM_FORMATRANGE: stub

This keeps repeating and I have to terminate the application.
James Mckenzie

RichEdit problem with Delphi QuickReport App

Post by James Mckenzie »

dimesio wrote:
fang wrote:
vitamin wrote: What do you mean by "the new prefix"? I'm not finding a "new" command-line option.
Delete or rename ~/.wine and reinstall your app without any winetricks.
I had to run a "winetricks mdac28" in order to get the BDE (required by a Delphi application using ODBC) configured.

When I run the application now I get:
fixme:richedit:ME_HandleMessage EM_FORMATRANGE: stub

This keeps repeating and I have to terminate the application.
Please review bug 6254 for a possible fix for this problem. I am working on a better patch for implementation of this function as the current patch does not pass testing. However, the patch does implement this function so that formatting works as it does in Windows.

James McKenzie
fang
Level 1
Level 1
Posts: 8
Joined: Tue Dec 01, 2009 10:46 am

Re: RichEdit problem with Delphi QuickReport App

Post by fang »

James Mckenzie wrote:
Please review bug 6254 for a possible fix for this problem. I am working on a better patch for implementation of this function as the current patch does not pass testing. However, the patch does implement this function so that formatting works as it does in Windows.

James McKenzie
Is this patch available to implement? If so, how?

Thanks
James Mckenzie

RichEdit problem with Delphi QuickReport App

Post by James Mckenzie »

fang wrote:
James Mckenzie wrote:
Please review bug 6254 for a possible fix for this problem. I am working on a better patch for implementation of this function as the current patch does not pass testing. However, the patch does implement this function so that formatting works as it does in Windows.

James McKenzie
Is this patch available to implement? If so, how?
I have found that the patch does not implement the function correctly through testing. The bug advises to use:

Code: Select all


winetricks riched20

Please do so, and run the program again from the terminal and advise of any further difficulties encountered.

Please update the bug report with your program name and vote for the bug so we can track who is experiencing problems caused by the lack of this function.

James McKenzie
fang
Level 1
Level 1
Posts: 8
Joined: Tue Dec 01, 2009 10:46 am

Re: RichEdit problem with Delphi QuickReport App

Post by fang »

James Mckenzie wrote:fang wrote:
James Mckenzie wrote: Is this patch available to implement? If so, how?
I have found that the patch does not implement the function correctly through testing. The bug advises to use:

Code: Select all


winetricks riched20

Please do so, and run the program again from the terminal and advise of any further difficulties encountered.

Please update the bug report with your program name and vote for the bug so we can track who is experiencing problems caused by the lack of this function.

James McKenzie
Now I'm back to my original errors (the ntlm stuff) plus a few. Earlier, I was advised to remove all the winetricks stuff and start fresh. I had to install ODBC for the application to work at all. With the re-introduction of riched20, I get this.

fixme:ntlm:ntlm_AcquireCredentialsHandleW AcquireCredentialsHandle: SECPKG_CRED_BOTH stub
fixme:ntlm:ntlm_AcquireCredentialsHandleW AcquireCredentialsHandle: SECPKG_CRED_BOTH stub
err:toolbar:TOOLBAR_GetImageListForDrawing bitmap for ID 0, index 13 is not valid, number of bitmaps in imagelist: 13
err:toolbar:TOOLBAR_GetImageListForDrawing bitmap for ID 0, index 13 is not valid, number of bitmaps in imagelist: 13
err:toolbar:TOOLBAR_GetImageListForDrawing bitmap for ID 0, index 13 is not valid, number of bitmaps in imagelist: 13
err:toolbar:TOOLBAR_GetImageListForDrawing bitmap for ID 0, index 13 is not valid, number of bitmaps in imagelist: 13
err:toolbar:TOOLBAR_GetImageListForDrawing bitmap for ID 0, index 13 is not valid, number of bitmaps in imagelist: 13
err:toolbar:TOOLBAR_GetImageListForDrawing bitmap for ID 0, index 13 is not valid, number of bitmaps in imagelist: 13
err:toolbar:TOOLBAR_GetImageListForDrawing bitmap for ID 0, index 13 is not valid, number of bitmaps in imagelist: 13
err:toolbar:TOOLBAR_GetImageListForDrawing bitmap for ID 0, index 13 is not valid, number of bitmaps in imagelist: 13
err:toolbar:TOOLBAR_GetImageListForDrawing bitmap for ID 0, index 13 is not valid, number of bitmaps in imagelist: 13
err:toolbar:TOOLBAR_GetImageListForDrawing bitmap for ID 0, index 13 is not valid, number of bitmaps in imagelist: 13
James Mckenzie

RichEdit problem with Delphi QuickReport App

Post by James Mckenzie »

fang wrote:
James Mckenzie wrote:fang wrote:

James Mckenzie wrote: I have found that the patch does not implement the function correctly through testing. The bug advises to use:


Code:


winetricks riched20





Please do so, and run the program again from the terminal and advise of any further difficulties encountered.

Please update the bug report with your program name and vote for the bug so we can track who is experiencing problems caused by the lack of this function.

James McKenzie
Now I'm back to my original errors (the ntlm stuff) plus a few. Earlier, I was advised to remove all the winetricks stuff and start fresh. I had to install ODBC for the application to work at all. With the re-introduction of riched20, I get this.

fixme:ntlm:ntlm_AcquireCredentialsHandleW AcquireCredentialsHandle: SECPKG_CRED_BOTH stub
fixme:ntlm:ntlm_AcquireCredentialsHandleW AcquireCredentialsHandle: SECPKG_CRED_BOTH stub
Please check the bug list to see if there is a bug report for this fixme. However, I'm not of the opinion this is causing the problem.
err:toolbar:TOOLBAR_GetImageListForDrawing bitmap for ID 0, index 13 is not valid, number of bitmaps in imagelist: 13
err:toolbar:TOOLBAR_GetImageListForDrawing bitmap for ID 0, index 13 is not valid, number of bitmaps in imagelist: 13
err:toolbar:TOOLBAR_GetImageListForDrawing bitmap for ID 0, index 13 is not valid, number of bitmaps in imagelist: 13
err:toolbar:TOOLBAR_GetImageListForDrawing bitmap for ID 0, index 13 is not valid, number of bitmaps in imagelist: 13
err:toolbar:TOOLBAR_GetImageListForDrawing bitmap for ID 0, index 13 is not valid, number of bitmaps in imagelist: 13
err:toolbar:TOOLBAR_GetImageListForDrawing bitmap for ID 0, index 13 is not valid, number of bitmaps in imagelist: 13
err:toolbar:TOOLBAR_GetImageListForDrawing bitmap for ID 0, index 13 is not valid, number of bitmaps in imagelist: 13
err:toolbar:TOOLBAR_GetImageListForDrawing bitmap for ID 0, index 13 is not valid, number of bitmaps in imagelist: 13
err:toolbar:TOOLBAR_GetImageListForDrawing bitmap for ID 0, index 13 is not valid, number of bitmaps in imagelist: 13
err:toolbar:TOOLBAR_GetImageListForDrawing bitmap for ID 0, index 13 is not valid, number of bitmaps in imagelist: 13
This needs a bug report. This may be why your program is failing. Please file a bug report for this if one does not exist.

James McKenzie
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: RichEdit problem with Delphi QuickReport App

Post by vitamin »

fang wrote:Now I'm back to my original errors (the ntlm stuff) plus a few.
Ignore those errors, they don't have anything to do with your problem. Something else is going on here. I'm afraid you'll have to enable more logging and see what's going on.

Start with warn+all and see if there is anything obvious. If not, make it a +relay,+seh,+tid and redirect it to a file.
Locked