Page 5 of 5
Re: Need ActiveX PDF Reader
Posted: Tue Mar 10, 2020 2:08 am
by skiman
Hi Jimmy,
how would you do it with Acrobat
Acrobat has the loadfile() method, which is loading and refreshing without closing the window.
In the htmlviewer there is the navigate() method, which does the same.
Re: Need ActiveX PDF Reader
Posted: Wed Mar 11, 2020 4:49 pm
by Auge_Ohr
hi,
i found that harbour Code and i have test it with Xbase++ and Ot4XB and it work.
but that piece of Code does not present all what can be done when using SumatraPDF
you can start SumatraPDF as Stand-alone. in upper-left you find a Menu.
you can use multi Instance or "ReuseInstance"*** but that was not include in my harbour Code
***
https://www.sumatrapdfreader.org/settings.html
so i have to ask in harbour Forum how to use "ReuseInstance"
Re: Need ActiveX PDF Reader
Posted: Sat Mar 14, 2020 1:34 am
by Auge_Ohr
i have ask in harbour Forum and got the Answer that my "translation" of TerminateProcess() does not work ...
Original Version
Code: Select all
// TerminateProcess ( [ nProcessID ] , [ nExitCode ] )
HB_FUNC ( TERMINATEPROCESS )
{
DWORD ProcessID = HB_ISNUM (1) ? (DWORD) hb_parnl(1) : GetCurrentProcessId();
UINT uExitCode = (UINT) hb_parnl (2);
HANDLE hProcess = OpenProcess ( PROCESS_TERMINATE, FALSE, ProcessID );
if ( hProcess != NULL )
{ if ( TerminateProcess (hProcess, uExitCode) == FALSE )
CloseHandle (hProcess);
}
}
my Xbase++ Version
Code: Select all
METHOD SumatraPDF:TerminateProcess( nPID )
LOCAL hProcess := @Kernel32:OpenProcess( PROCESS_TERMINATE, FALSE, nPID )
IF !EMPTY(hProcess)
@Kernel32:TerminateProcess( nPID )
@Kernel32:CloseHandle(hProcess)
ENDIF
RETURN NIL
i will work on it ...
Re: Need ActiveX PDF Reader
Posted: Sat Mar 14, 2020 11:00 am
by patito
Hi Jimmy
If we don't know the sources
That method doesn't help at all.
I hope to place the sources soon, as well as
a new, more robust version of MySQL (mariadb)
using the expando class
Best Regard
Hector Pezoa
Re: Need ActiveX PDF Reader
Posted: Sat Mar 14, 2020 5:49 pm
by Auge_Ohr
hi,
not sure if i understand you.
Source is available at
https://github.com/sumatrapdfreader/sumatrapdf
but you are right, wrong Forum for Ot4Xb Question.
i will write it in Pablos Newsgroup and be back when have Solution