OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Low tech question, I'm sure

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
madams
Newbie
Newbie


Joined: 27 May 2006
Posts: 2

PostPosted: Sat May 27, 2006 6:57 pm    Post subject: Low tech question, I'm sure Reply with quote

I have a simple one or two page document that I want to add some scanned, not OCR'd, supporting documentation at the the end. I've recorded a macro that goes to the end of the doc (Ctrl-End), inserts a page break then starts my scanner program.

Everything works fine as the newly scanned doc is placed on the next page. The problem is the macro ends and the newly scanned page has the green handles boxes around it. I need the macro to somehow get rid of the handles without an extra click so the assigned keyboard shortcut can be started again to add more pages. How would I do that?

I'm writing this app for others to use so it needs to be easy. I hope I've explained this well enough for you to understand.

Thanks,

Mike
Back to top
View user's profile Send private message
9point9
Moderator
Moderator


Joined: 31 Aug 2004
Posts: 3875
Location: UK

PostPosted: Sun May 28, 2006 12:34 am    Post subject: Reply with quote

The green handles sound like anchor points for the scan that you are inserting. They won't show up upon printing.
_________________
Arch Linux
OOo 3.2.0

OOoSVN, change control for OOo documents:
http://sourceforge.net/projects/ooosvn/
Back to top
View user's profile Send private message Visit poster's website
madams
Newbie
Newbie


Joined: 27 May 2006
Posts: 2

PostPosted: Sun May 28, 2006 9:11 am    Post subject: Low tech question, I'm sure Reply with quote

9point9 wrote:
The green handles sound like anchor points for the scan that you are inserting. They won't show up upon printing.


Thanks for the reply 9point9 but wasn't what I was trying to explain. I'll try again, maybe better this time.

I want to scan more than one page into the doc. After the first scan the anchor points appear. After the first scan I want the user to be able use the keyboard short cut, in this case CTL+Shift+C to start a new scan at the end of the doc. If the scan is started with the anchor points still visible the new scan is placed on top of the existing scan rather than a new page. So my question is, after a scan how do I take focus off of the anchor points without requiring the user to click off the scanned image

There is probably a more elegant solution in VB of which I don't know.

Thanks for any help

Mike
Back to top
View user's profile Send private message
JohnV
Administrator
Administrator


Joined: 07 Mar 2003
Posts: 9183
Location: Lexinton, Kentucky, USA

PostPosted: Mon May 29, 2006 9:01 am    Post subject: Reply with quote

At the end of the scan record a press of the Escape key which will put the cursor just below the scanned item then decide what you may want after that like a new page.
Back to top
View user's profile Send private message
patb
General User
General User


Joined: 01 Aug 2004
Posts: 32
Location: Canberra, Aus.

PostPosted: Wed May 31, 2006 7:30 pm    Post subject: Reply with quote

Mike, I suspect the answer is really simple. Something like:
Quote:
thisComponent.getCurrentController.getViewCursor.collapseToEnd
But please show us your recorded macro. Cheers, Pat.
_________________
OOo 2.4.1 on Ubuntu Linux 8.04
"It's never too late to have a happy childhood" - bumper sticker, Zimbabwe.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group