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.

Current Line Number

2 posts in Objects Last posting was on 2003-03-26 14:36:43.0Z
Lloyd_Dzinotyiwei Posted on 2003-03-10 22:35:06.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: Lloyd_Dzinotyiwei
Date: Mon, 10 Mar 2003 17:35:06 -0500
Subject: Current Line Number
Lines: 15
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <364_74789F71F57920DD007C105685256CE5.007C107A85256CE5@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.powerbuilder.objects:7241
Article PK: 734529

I use Powerbuilder 8.0 and I have an ole object in my application that
opens up word documents. I've been squelching my instincts for a long time
now on how I can get the current line number of an opened doc. Basically
what the application is doing is open up a template doc and write to the
doc. As the application writes, I need to check what the current line
number is. This is where I'm stuck.
I'm hoping there could be some function that can be coded as follows

ole_doc.ActiveDocument.Currentlinenumber()

Acknowledging your help, I thank you

Yours Sincerely

Lloyd


Bruce Armstrong [TeamSybase] Posted on 2003-03-26 14:36:43.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
Subject: Re: Current Line Number
Date: Wed, 26 Mar 2003 06:36:43 -0800
Organization: TeamSybase
Reply-To: NOCANSPAM_bruce.armstrong@teamsybase.com
X-Newsreader: Forte Agent 1.92/32.572
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 66-214-183-11.la-cbi.charterpipeline.net 66.214.183.11
Lines: 32
Message-ID: <364_tle38v8se3707tkavq3e9c4eqtesn62jm1@4ax.com>
References: <364_74789F71F57920DD007C105685256CE5.007C107A85256CE5@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums-2-dub.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:7272
Article PK: 734561

The wdInformation class takes a wdFirstCharacterLineNumber argument
(10) which may return the information you're looking for.

On Mon, 10 Mar 2003 17:35:06 -0500, Lloyd_Dzinotyiwei wrote:

>I use Powerbuilder 8.0 and I have an ole object in my application that
>opens up word documents. I've been squelching my instincts for a long time
>now on how I can get the current line number of an opened doc. Basically
>what the application is doing is open up a template doc and write to the
>doc. As the application writes, I need to check what the current line
>number is. This is where I'm stuck.
>I'm hoping there could be some function that can be coded as follows
>
>ole_doc.ActiveDocument.Currentlinenumber()
>
>Acknowledging your help, I thank you
>
>Yours Sincerely
>
>Lloyd

Bruce Armstrong [TeamSybase]
http://www.teamsybase.com

Not 1 - but 2 new books on developing with PowerBuilder
http://www.pb9books.com

Google Groups search is working again, hurrah!!!!
http://groups.google.com/advanced_group_search?hl=en&as_ugroup=powersoft.public.powerbuilder.*
Remember to only use Google for searching, not for posting.

Preach the gospel at all times. If necessary, use words. - Francis of Assisi
http://www.needhim.org