

bzwirs
-
Content Count
55 -
Joined
-
Last visited
Posts posted by bzwirs
-
-
Latest Delphi.
Have a VCL program running successfully at a client for several years. Just released an update and program now won't run on any of the client machines. Double click the program icon and get the wait circle for a few seconds and then nothing. No error message. Have checked the task manager and application not listed. Client machines are all windows 11. The application runs without any issues on my development machine... also running windows 11 (recently updated to 24H2).
Any ideas as to what might be going on here?
Bill Zwirs
-
Thank you Rollo and Dave. Added a delay value of 50 to the forcequeue (as suggested by Rollo in earlier post) and all seems to be working correctly now.
Bill Zwirs
-
I think I didn't explain very clearly. Where I state 'creating the PDF', I am talking about creating a PDF document and then directly calling the PDFControl LoadPDF method to display the document.
Bill Zwirs
-
That works but still getting the narrow vertical print randomly.
If pdf already exists then shows ok but if LoadPDF is called directly after creating the PDF then still getting the narrow view occasionally (exit out and view again and all ok).
Any way around this behavior?
Bill Zwirs
-
Since upgrade to Delphi 12.2 I am getting the PDF displayed in a narrow vertical area in middle of screen again. Have downloaded latest Kastri but that didn't fix the issue.
Any ideas??
Bill Zwirs
-
Yes. I was getting that message for all filter options.
Have just re-installed Delphi 12.2 and all seems to be working correctly now.
Bill Zwirs
-
Installed 12.2 4 days ago and after install I used Getit to install a component and all worked Ok. Next day (and every day since) I have started Getit and keep getting 'No Results Found', even though it shows results in the 'New In Getit' and 'Promoted In Getit' sections of the welcome page.
Is anybody else having this problem or is Getit simply not working at the moment?
Bill Zwirs
-
Fixed the background colour problem by placing a TMSFNCPanel component on the TabItem and changing the FPDFControl.Parent to the panel name. The PDF now displays with a proper white background.
Bill Zwirs
-
1
-
-
Thanks. Reversed the calls as suggested and that now works for me also. But has now raised another issue. The displayed PDF now adopts the background colour of the style set for the application instead of a white background. I've tried to play with the Opacity property of the FPDFControl which doesn't solve the problem and not sure what else to try.
Any suggestions?
Bill Zwirs
-
I am having a problem using the PDFControl on Android device. Have followed the example code for using the PDFControl in demo provided by Kastri but all I get is the PDF displayed in a narrow vertical area (small, about 10mm wide) up the middle of the screen.
In the onCreate event I have placed
if TOSVersion.Platform = TOSVersion.TPlatform.pfAndroid then begin FPDFControl := TPDFControl.Create(Self); FPDFControl.Align := TAlignLayout.Client; FPDFControl.Parent := TabItem17; end;
The PDF needs to be displayed in TabItem17 of a TabControl. TabItem17 has nothing on it except for a TLayout at bottom of screen with a button to enable return to another TabItem.
Following is the code used to load and display the PDF
procedure TMainForm.Display_PDF(const sFile : string); begin {$IF DEFINED(ANDROID)} if FPDFControl <> nil then FPDFControl.LoadPDF(sFile); TabControl1.SetActiveTabWithTransition(TabItem17,TTabTransition.Slide, TTabTransitionDirection.Normal); {$ENDIF} {$ifdef win32} PDFBrowser.Navigate('file://' + sFile); TabControl1.SetActiveTabWithTransition(TabItem13,TTabTransition.Slide, TTabTransitionDirection.Normal); {$ENDIF} end;
Can anybody please help with what I need to do to display the PDF properly.
Thanks in advance.
Bill Zwirs
-
Thank you all for your responses. Think I'll use sqlite this time and wait a bit longer for Firebird.
thanks
Bill
-
Delphi 12 with latest updates.
I want to use a firebird database on android device. Firebird supply a 'Firebird-5.0.0.1306-0-android-arm64.tar.gz' file for working with android but no information on how to use the files contained therein. Can anybody please point me in the right direction on examples on how to achieve this,
Thanks in advance
Bill Zwirs
-
Remy and DelphiUdIT
Have changed loading .so files to "library\lib\arm64-v8a\" and all appears to be working now.
OpenSSLVersion now reports as "OpenSSL 1.0.2s-fips 28 May 2019". Previously I was just getting an empty string so maybe assume I was doing something wrong.
Thanks for all your help.
Bill Zwirs
-
On 6/15/2024 at 1:05 AM, Remy Lebeau said:Why would you think it's not possible?
Several years ago I googled on the same issue and all I could find at the time was advise that it could not be done and needed to use Android Intents which called the mail client. This solution was Ok at the time as it would only be occasionally used in the app. But now I need to be able to send multiple emails so don't want the mail client popping up for each so asked the question in case things had changed.
By the way, I am using Delphi 12 with latest updates.
Since your reply I have been trying to use the Indy approach and found a post on Stackoverflow and followed the following advice:
-
Add the 2
.so
files to your project deployment and set them to deploy to the.\assets\internal\
folder -
add the
System.StartupCopy
unit as the first unit in your DPR'suses
clause. -
call
IdOpenSSLSetLibPath(TPath.GetDocumentsPath)
at app startup.
I am using the 64bit files included in openssl-1.0.2s_Android and keep getting the 'could not load SSL library' error. I have used FileExists to check if file (just for one of the files) is there. Here is the code I use in the OnFormCreate event. Compiled for Android64.
Quotevar aFile := TPath.Combine(TPath.GetDocumentsPath,'libssl.so');
IdOpenSSLSetLibPath(TPath.GetDocumentsPath);
if FileExists(aFile) then
IdSSLOpenSSLHeaders.Load();Is there anything else I can try to make this work.
Bill Zwirs
-
-
Is it possible to use smtp on android to send multiple emails with attachments and are there any examples of this available. I don't want the email client popping up for each email .... just all done in the background.
Thanks in advance.
Bill Zwirs
-
At the time I had this problem I ended up going to the component creators of the components where I was having this issue (Woll2Woll for the datagrid and TMS for the TMS Edit component). Both provided updates that fixed the problem.
-
Today I added a TEdit component to the grid for the column with the integer field but again, still cannot enter a negative number from the numberpad on Android.
-
Yes they do plus you can add other edit components. So this may be a Woll2Woll issue as the app compile now uses the latest Firepower components update for Delphi 12 and there were no problems with the earlier versions. I will add a post to their forum.
Thanks.
-
1
-
-
Simply Datasource linked to Woll2Woll Firepower grid. No additional edit components.
-
Using Delphi 12, Woll2Woll Firepower Data Grid, Firedac Query, SQLite DB
Have an app that has been used for couple of years without any significant issues until recent compile with Delphi 12. The issue is with editing an integer field in a Firepower data grid. For the field keyboard type I have selected the numberpad type. Previously users have always been able to select the minus sign to input a negative number but this no longer works since the last compile for Android.
Can anybody please help with advice on how to fix this issue.
Bill Zwirs
-
Hi,
Ended up using example from aehimself. That was the easiest to implement in my app and worked straight away.
regards
Bill
-
Thank you to all. This gives me a lot to try so will let you know at a later date whatever has ended up working for me.
Thanks again to everyone.
regards
Bill Zwirs
-
I need to collect all tubes data. At this stage, specifically the coin_unit and coin_count fields.
Bill Zwirs
-
Sorry...normally first thing I add. FMX application on Delphi 11.3.
Bill
Application won't start
in General Help
Posted
Tried logging for the startup stuff (on datamodule create) which creates the log on my development machine but not on other machines so the problem is before all that. With the event viewer on the problem machine I found the appcrash report but that is very difficult to understand. From the wer report I assume this is supposed to tell me where the problem is located:
Sig[0].Name=Application Name
Sig[0].Value=myapp.exe
Sig[1].Name=Application Version
Sig[1].Value=1.4.0.419
Sig[2].Name=Application Timestamp
Sig[2].Value=67b15d76
Sig[3].Name=Fault Module Name
Sig[3].Value=KERNELBASE.dll
Sig[4].Name=Fault Module Version
Sig[4].Value=10.0.14393.7513
Sig[5].Name=Fault Module Timestamp
Sig[5].Value=67171aad
Sig[6].Name=Exception Code
Sig[6].Value=0eedfade
Sig[7].Name=Exception Offset
Sig[7].Value=000dd562
But don't know how to find out what this really means and how this tells me what to do to fix the issue.
Any help or pointers would be appreciated.
As an aside..... my development machine runs Windows 11 24h2 (updated about a month ago) and the other machines have earlier versions. Could this be an issue?
thanks
Bill