| View previous topic :: View next topic |
| Author |
Message |
madams Newbie

Joined: 27 May 2006 Posts: 2
|
Posted: Sat May 27, 2006 6:57 pm Post subject: Low tech question, I'm sure |
|
|
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 |
|
 |
9point9 Moderator

Joined: 31 Aug 2004 Posts: 3875 Location: UK
|
Posted: Sun May 28, 2006 12:34 am Post subject: |
|
|
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 |
|
 |
madams Newbie

Joined: 27 May 2006 Posts: 2
|
Posted: Sun May 28, 2006 9:11 am Post subject: Low tech question, I'm sure |
|
|
| 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 |
|
 |
JohnV Administrator

Joined: 07 Mar 2003 Posts: 8984 Location: Lexinton, Kentucky, USA
|
Posted: Mon May 29, 2006 9:01 am Post subject: |
|
|
| 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 |
|
 |
patb General User

Joined: 01 Aug 2004 Posts: 32 Location: Canberra, Aus.
|
Posted: Wed May 31, 2006 7:30 pm Post subject: |
|
|
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 |
|
 |
|