Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Open PDF file from PB

3 posts in Objects Last posting was on 2006-10-25 16:52:57.0Z
Marina Posted on 2006-10-25 15:21:35.0Z
Sender: 71d3.453f8046.1804289383@sybase.com
From: Marina
Newsgroups: sybase.public.powerbuilder.objects
Subject: Open PDF file from PB
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <453f80ff.71de.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 25 Oct 2006 08:21:35 -0700
X-Trace: forums-1-dub 1161789695 10.22.241.41 (25 Oct 2006 08:21:35 -0700)
X-Original-Trace: 25 Oct 2006 08:21:35 -0700, 10.22.241.41
Lines: 5
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9107
Article PK: 736292

Hello everyone,
How can I open pdf file in the Adobe Acrobat 5.0 from the
PB8 application?

Thank you.


John Strano Posted on 2006-10-25 16:52:57.0Z
Reply-To: "John Strano" <nichtspam_jstrano@csi.com>
From: "John Strano" <nichtspam_jstrano@csi.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <453f80ff.71de.1681692777@sybase.com>
Subject: Re: Open PDF file from PB
Lines: 18
Organization: Sybase
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1807
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807
NNTP-Posting-Host: vpn-concord-125.sybase.com
X-Original-NNTP-Posting-Host: vpn-concord-125.sybase.com
Message-ID: <453f9669$1@forums-1-dub>
Date: 25 Oct 2006 09:52:57 -0700
X-Trace: forums-1-dub 1161795177 158.159.8.125 (25 Oct 2006 09:52:57 -0700)
X-Original-Trace: 25 Oct 2006 09:52:57 -0700, vpn-concord-125.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9109
Article PK: 736293

In addition to opening a separate instance of Acrobat,
some developers have had limited success with the Acrobat ActiveX
in windows or custom user objects.

--

John Strano
Sybase Technology Evangelist

<Marina> wrote in message news:453f80ff.71de.1681692777@sybase.com...
> Hello everyone,
> How can I open pdf file in the Adobe Acrobat 5.0 from the
> PB8 application?
>
> Thank you.


Brad Wery [TeamSybase] Posted on 2006-10-25 15:44:02.0Z
From: "Brad Wery [TeamSybase]" <bradweryatagricoreunited.com>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Open PDF file from PB
References: <453f80ff.71de.1681692777@sybase.com>
In-Reply-To: <453f80ff.71de.1681692777@sybase.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: ugg10.unitedgrain.ca
X-Original-NNTP-Posting-Host: ugg10.unitedgrain.ca
Message-ID: <453f8642$1@forums-1-dub>
Date: 25 Oct 2006 08:44:02 -0700
X-Trace: forums-1-dub 1161791042 165.23.247.49 (25 Oct 2006 08:44:02 -0700)
X-Original-Trace: 25 Oct 2006 08:44:02 -0700, ugg10.unitedgrain.ca
Lines: 19
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9108
Article PK: 736294

Use the ShellExecute API function:

//Declare Local External Function
Public Function Long ShellExecute (Long hWnd, String lpOperation, String
lpFile, String lpParameters, String lpDirectory, Long nShowCmd) Library
"shell32.dll" Alias For "ShellExecuteA"


ShellExecute (0, "", "myfile.pdf", "", "", 1)


Brad

Marina wrote:
> Hello everyone,
> How can I open pdf file in the Adobe Acrobat 5.0 from the
> PB8 application?
>
> Thank you.