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.

Powerbuilder 8, Vista, Windows Journal, OLE

3 posts in Objects Last posting was on 2010-02-18 23:16:52.0Z
mbarth Posted on 2009-09-08 19:22:36.0Z
Sender: 11f4.4aa6ac7e.1804289383@sybase.com
From: mbarth@microquest.ab.ca
Newsgroups: sybase.public.powerbuilder.objects
Subject: Powerbuilder 8, Vista, Windows Journal, OLE
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4aa6aefb.124b.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 8 Sep 2009 12:22:36 -0700
X-Trace: forums-1-dub 1252437756 10.22.241.41 (8 Sep 2009 12:22:36 -0700)
X-Original-Trace: 8 Sep 2009 12:22:36 -0700, 10.22.241.41
Lines: 20
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9887
Article PK: 737019

I have been having a problem with launching Windows Journal
documents with OLE under Vista. The program has worked fine
under XP, but under vista it shows a Create Package dialog
box. I have been communicating with Microsoft and
demonstrated the same error using VB6. They have given me a
solution for VB6, but I cannot replicate the solution in PB.
Here is the commands in VB...
OLE1.CreateLink (filename)
OLE1.DoVerb (-1)
We changed the DoVerb from -2 to -1 and the problem is fixed
in VB.
In Powerbuilder I do a...
ole_1.InsertFile(filename)
ole_1.Activate(OffSite!)
I have tried replacing the Activate with a DoVerb, but it
still does not work. I have tried the LinkTo() function
instead of InsertFile, but only get an error -9 (other
error).

Is there a PB equivalent to the VB CreateLink() function?


"Paul Horan[Sybase]" <phoran_remove Posted on 2009-09-08 22:18:53.0Z
From: "Paul Horan[Sybase]" <phoran_remove@remove_sybase.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <4aa6aefb.124b.1681692777@sybase.com>
Subject: Re: Powerbuilder 8, Vista, Windows Journal, OLE
Lines: 33
Organization: Sybase
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4aa6d84d$1@forums-1-dub>
Date: 8 Sep 2009 15:18:53 -0700
X-Trace: forums-1-dub 1252448333 10.22.241.152 (8 Sep 2009 15:18:53 -0700)
X-Original-Trace: 8 Sep 2009 15:18:53 -0700, vip152.sybase.com
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9888
Article PK: 737018

PB8 is not supported under Vista. You'll need to be on 10.5 or 11.1 for
Vista support.

That being said, try the ole_1.LinkTo( filename ) method.

--
Paul Horan[Sybase]
http://blogs.sybase.com/phoran/

<mbarth@microquest.ab.ca> wrote in message
news:4aa6aefb.124b.1681692777@sybase.com...
>I have been having a problem with launching Windows Journal
> documents with OLE under Vista. The program has worked fine
> under XP, but under vista it shows a Create Package dialog
> box. I have been communicating with Microsoft and
> demonstrated the same error using VB6. They have given me a
> solution for VB6, but I cannot replicate the solution in PB.
> Here is the commands in VB...
> OLE1.CreateLink (filename)
> OLE1.DoVerb (-1)
> We changed the DoVerb from -2 to -1 and the problem is fixed
> in VB.
> In Powerbuilder I do a...
> ole_1.InsertFile(filename)
> ole_1.Activate(OffSite!)
> I have tried replacing the Activate with a DoVerb, but it
> still does not work. I have tried the LinkTo() function
> instead of InsertFile, but only get an error -9 (other
> error).
>
> Is there a PB equivalent to the VB CreateLink() function?


John Wilkinson Posted on 2010-02-18 23:16:52.0Z
Sender: 431f.4b7dc862.1804289383@sybase.com
From: John Wilkinson
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Powerbuilder 8, Vista, Windows Journal, OLE
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4b7dca64.43a7.1681692777@sybase.com>
References: <4aa6d84d$1@forums-1-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 18 Feb 2010 15:16:52 -0800
X-Trace: forums-1-dub 1266535012 10.22.241.41 (18 Feb 2010 15:16:52 -0800)
X-Original-Trace: 18 Feb 2010 15:16:52 -0800, 10.22.241.41
Lines: 44
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9975
Article PK: 737109

I have 12.5.4 and I just got the error on Vista. I tend to
stick to XP where possible but my boss has a laptop that
uses my program and she got 'Create Package' where it would
normally display the image.

I verified the path, can bring up the image across the
network - but as soon as OLE gets involved it doesn't work.

Any ideas?

> PB8 is not supported under Vista. You'll need to be on
> 10.5 or 11.1 for Vista support.
>
> That being said, try the ole_1.LinkTo( filename ) method.
>
> --
> Paul Horan[Sybase]
> http://blogs.sybase.com/phoran/
>
> <mbarth@microquest.ab.ca> wrote in message
> news:4aa6aefb.124b.1681692777@sybase.com...
> >I have been having a problem with launching Windows
> > Journal documents with OLE under Vista. The program has
> > worked fine under XP, but under vista it shows a Create
> > Package dialog box. I have been communicating with
> > Microsoft and demonstrated the same error using VB6.
> > They have given me a solution for VB6, but I cannot
> > replicate the solution in PB. Here is the commands in
> > VB... OLE1.CreateLink (filename)
> > OLE1.DoVerb (-1)
> > We changed the DoVerb from -2 to -1 and the problem is
> > fixed in VB.
> > In Powerbuilder I do a...
> > ole_1.InsertFile(filename)
> > ole_1.Activate(OffSite!)
> > I have tried replacing the Activate with a DoVerb, but
> > it still does not work. I have tried the LinkTo()
> > function instead of InsertFile, but only get an error -9
> > (other error).
> >
> > Is there a PB equivalent to the VB CreateLink()
> function?
>
>