ole_1.object.loadfile(pdf_file_name)
Brad
Now you can use the following code to display your file:
ole_1.object.loadfile(pdf_file_name)
Brad
shailendra patel wrote:
> thank you very much for your reply .
> i had Adobe Acrobet 7.0 now previously i had Adobe Acrobet
> 6.0
> when i insert a ole conrol into window selecting create new
> adobe acrobat 7.0 document . it ask for a file path i
> clicked cancel and inserted ole control in window , still
> giving same error message , do i have to instrall any adobe
> acrobet patch/update . it looks like adobe problem . here i
> attached a export file of window
>
As for getting PB to work with Adobe 7. Hopefully someone else will jump
in because I'm not sure exactly what needs to be done to fix the problem.
Brad
shailendra Patel wrote:
> thank you
> i can not see adobeacrobat into insert control
> so i clicked on register new and selected acropdf.dll then i
> gave
> message acropdf.dll is not marked as supporting
> self-registration.
> however, the function "dllregisterserver" was found do you
> wish to register this file as control " and i registerd .
> when i selected this
> control into window it is giving message OLE control is
> missing critical interface "IPersiststrorage" i can not find
> any file with the
> name "dllregisterserver" or "IPersiststrorage" what i
> should do to
> remove this erro i upgraded adobe acrobat to 7.08 and pb i
> got is 9.02 build 7661 . now what i should do , please
> advise me .
> i attached a message copy
>
It appears that you could insert and use an IE control instead of the
Adobe control.
Brad
Brad
shailendra Patel wrote:
> than k you
> now i used microsoft web browser insted of adobe .
> but when i run it open another session to open a file not
> opening
> into window . into window ole object it gives the message
> internet
> exporer was unableo to linkto web page you requested . it
> run fine
> once after that it started giving this message .
> i'm doing by ole_1.Object.Navigate(pdf_file_file_name)
> i attached two file one code and another screen shot .
>
>
Open Adobe and go to the Edit\Preferences menu option. Select the
Internet option found in the list on the left. Make sure that the
"Display PDF in Browser" option is checked.
Hope this does it for you.
Brad
shailendra patel wrote:
> when i copied the filename with complete path into internet
> exporer , it opened the file not inside the exporer but
> opened
> adobe seperately.
> so it is exporer or abobe setting ? have idea whats required
> to be changed to solve this problem i want to open it
> inside/into the
> window where i have ole object.
I stopped messing around with that ole displaying, Just kick it to windows
and let windows handle it.
This way it also doesn't matter what kind of file you are displaying, as
long als the registry knows about it.
(local external function)
FUNCTION long ShellExecuteA( ulong hWnd, string Operation, string lpFile,
string lpParameters, string lpDirectory, int nShowCmd ) LIBRARY
"shell32.dll"
(The script)
string ls_null
ShellExecuteA( 0, "open", 'whateverfile.pdf', ls_null, ls_null, 1 )
Note: this can also be a jpg, doc, whatever.....
<shailendra patel> schreef in bericht
news:44c61c55.436...@sybase.com...