Kurt
-
Posts
19 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Kurt
-
-
On 3/2/2024 at 12:39 AM, Muhammad Idris said:
How to run it in Unigui?
install pdftk in your environment
and you can use this code:
procedure MergeAndEncryptPDFs(const AInputFiles: string; const AOutputFile: string; const AUserPassword: string); var CommandLine: string; StartupInfo: TStartupInfo; ProcessInfo: TProcessInformation; begin CommandLine := 'pdftk ' + AInputFiles + ' cat output ' + AOutputFile + ' user_pw ' + AUserPassword; FillChar(StartupInfo, SizeOf(StartupInfo), 0); StartupInfo.cb := SizeOf(StartupInfo); if CreateProcess(nil, PChar(CommandLine), nil, nil, False, 0, nil, nil, StartupInfo, ProcessInfo) then begin WaitForSingleObject(ProcessInfo.hProcess, INFINITE); CloseHandle(ProcessInfo.hProcess); CloseHandle(ProcessInfo.hThread); end else raise Exception.Create('not created'); end;
to call it:
procedure TMainForm.UniButton1Click(Sender: TObject); var OutPdf: string; begin OutPdf := UniServerModule.NewCacheFile('pdf', fileName); MergeAndEncryptPDFs('example1.pdf,example2.pdf', OutPdf, ''); end;
you can modify the code to omit the password protection for your pdf.
hope it helps
-
i use pdftk for this. you can try it out. its free
- 1
-
Hello,
Are you using it in grid? -
Hi,
Correct me if im wrong, if i have a websocket enabled in my app and im using a hyper server, the number of websocket is also the same with the number of nodes in my hyperserver? if so does it mean if im in different node, i wont be able to receive the websocket message from other node?
thank you- 1
-
this is my current code:
with UniDBGrid1, JSInterface do begin JSCall('getView().getNode', [CurrRow + 1],'var nd'); JSCallGlobal('Ext.fly(nd.id).highlight',[]); end;
but when i click the button, it shows a mask then the row never gets highlighted
-
16 hours ago, Sherzod said:
How do you edit the grid?
i click a button, then the current row moves to the next row then i want to highlight the row that changed.
16 hours ago, Sherzod said:Where did you get this code?
i read the documntation of ext js
-
Hi,
I want to highlight a Grid's row after its edit using this code in extjs:
Ext.fly('#id_of_row').highlight();
How do i do it?
Thahks.. -
hi,
what does dgAllowSelfUpdate do in the new update?
thank you -
-
Hi,
how to override the UniDBGrid.WebOptions.Paged behavior?
for example if i clicked the next page of the grid, i want to execute my query and pass the limit and offset coming from the grid?
thank you.. -
Hi,
I want to be able to use a function from a javascript file. this is my js file "Win32/Debug/files/js/app.js"
i want to reuse the myBeforeInit function in different UniGUIComponents. for example:
UniImage1, UniImage2 and UniImage3 uses the myBeforeInit function -
Hi,
I want to reuse the beforeInit function from a javascript file. How will I be able to reuse it for my unigui components.
thanks... -
7 minutes ago, Kurt said:
Hi,
how will i handle the database event of this? my scenario is:
1. i have a column that is a sequence/series
2. i want to reorder the sequence of the field
example:
seq, product_name
1, PRODUCT A
2, PRODUCT B
3, PRODUCT C
when i move the product B under the PRODUCT C i want the record to be:
seq, product_name
1, PRODUCT A
2, PRODUCT C
3, PRODUCT B
any idea how to implement it?nevermind... i just checked the source code of sample. its already there... thanks.....
-
Hi,
how will i handle the database event of this? my scenario is:
1. i have a column that is a sequence/series
2. i want to reorder the sequence of the field
example:
seq, product_name
1, PRODUCT A
2, PRODUCT B
3, PRODUCT C
when i move the product B under the PRODUCT C i want the record to be:
seq, product_name
1, PRODUCT A
2, PRODUCT C
3, PRODUCT B
any idea how to implement it? -
Can i use SGC Websocket Client in UniMainmodule to connect to a sgcwebsocket server?
Thanks... -
Hi
im following your answer from here:So im using a GridLookupField. is there a way to enable AnyMatch for a lookup field?
-
Hi,
Im using a LookupField in a grid, not UniDBLookupComboBox. but how do i enable the AnyMatch with it?Regards
Browser Alt Tab
in General
Posted
Hello,
How to listen to browser focus? for example the user goes to other window and go back to the browser, i want to call ajax event
Thanks