bb.donnay-software.com
http://bb.donnay-software.com/Donnay/

Need ActiveX PDF Reader
http://bb.donnay-software.com/Donnay/viewtopic.php?f=15&t=2686
Page 5 of 5

Author:  skiman [ Tue Mar 10, 2020 2:08 am ]
Post subject:  Re: Need ActiveX PDF Reader

Hi Jimmy,

Quote:
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.

Author:  Auge_Ohr [ Wed Mar 11, 2020 4:49 pm ]
Post subject:  Re: Need ActiveX PDF Reader

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"

Author:  Auge_Ohr [ Sat Mar 14, 2020 1:34 am ]
Post subject:  Re: Need ActiveX PDF Reader

i have ask in harbour Forum and got the Answer that my "translation" of TerminateProcess() does not work ...

Original Version
Code:
//        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:
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 ...

Author:  patito [ Sat Mar 14, 2020 11:00 am ]
Post subject:  Re: Need ActiveX PDF Reader

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

Author:  Auge_Ohr [ Sat Mar 14, 2020 5:49 pm ]
Post subject:  Re: Need ActiveX PDF Reader

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

Page 5 of 5 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/