Need ActiveX PDF Reader

Xbase++ 2.0 Build 554 or later
Message
Author
skiman
Posts: 1183
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: Need ActiveX PDF Reader

#41 Post 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.
Best regards,

Chris.
www.aboservice.be

User avatar
Auge_Ohr
Posts: 1405
Joined: Wed Feb 24, 2010 3:44 pm

Re: Need ActiveX PDF Reader

#42 Post 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"
greetings by OHR
Jimmy

User avatar
Auge_Ohr
Posts: 1405
Joined: Wed Feb 24, 2010 3:44 pm

Re: Need ActiveX PDF Reader

#43 Post 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 ...
greetings by OHR
Jimmy

patito
Posts: 121
Joined: Tue Aug 31, 2010 9:01 pm

Re: Need ActiveX PDF Reader

#44 Post 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

User avatar
Auge_Ohr
Posts: 1405
Joined: Wed Feb 24, 2010 3:44 pm

Re: Need ActiveX PDF Reader

#45 Post 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
greetings by OHR
Jimmy

Post Reply