Fast way to insert letterhead graphic into letters

6 replies [Last post]
mtblankus
Offline
Last seen: 3 weeks 5 days ago
Title:
Joined: 9 Mar 2016
Posts: 4
I’m looking for a fast way to insert a letterhead graphic (png file, but can be saved as something different if needed).

I do medical transcription and have letters from previous visits that I open, save with new date, and alter with the new information from the current visit. The office has changed their letterhead, so this is my current process:

Open old letter.
Select letterhead graphic.
Alt, I, I to insert and image, select file, enter.
Then I have to double-click the image to change the properties (anchor to page, adjust height to 8.5 and width to 11).
Enter, escape to unselect the image and move onto editing the text.

It seems like there should be a shorter process, but I don’t know how to do it. I thought of making a macro, but there’s no option to record a macro… and I’m not sure a macro would do all of that anyway.

Thanks in advance for any guidance you can offer!

Zizi64
Offline
Last seen: 4 hours 41 min ago
Title: ★★★★★
Joined: 30 Sep 2010
Posts: 384
You can automatize this task
You can automatize this task by a macro. Here is a similar example:

Change picture

…Or you can create and use a new teplate. The efficiency of this method depended on the structure of the old documents. (have you used Styles or not, where is located the letterhead elements: in the header or in the body of the document… etc.) Can you upload an example older .odt document here?


Tibor Kovács Budapest, Hungary LO4.4.7, and LO5.1.1 Portable version; AOO4.1.2 on Win7×64Prof_SP1
mtblankus
Offline
Last seen: 3 weeks 5 days ago
Title:
Joined: 9 Mar 2016
Posts: 4
Thank you for your help. I
Thank you for your help. I was able to add the record macro option and tried recording a macro. It will insert the letterhead photo, but doesn’t adjust the size and anchoring. I think that actually adds more steps to get inserting the file accomplished.

I tried saving the graphic png file as a jpg to see if it would hold the size (8.5×11) when inserted, but it does not. Is there another file type that would? I don’t understand why it resizes the image when inserted. It’s not inserting f

The letterhead graphic is in the body of the document, not the header. I tried putting it in the header, but it did the same thing (as well as moved all of the text way down on the page). I have tried Styles, but I haven’t figured out how that can help in this case. It just seems to mess up all of the formatting.

The files are saved as .doc files because they need to be opened in Word by my client. I’m attaching sample files, new and old.

Thanks!

AttachmentSize
sample new.doc 390 KB
sample old.doc 78 KB
Zizi64
Offline
Last seen: 4 hours 41 min ago
Title: ★★★★★
Joined: 30 Sep 2010
Posts: 384
I was able to add the record

I was able to add the record macro option and tried recording a macro.

You can record only the simpliest commands applied from the menu – by the macrorecorder. You must WRITE a macro but not record it – if you want to work efficiently with the open source office suites.


Tibor Kovács Budapest, Hungary LO4.4.7, and LO5.1.1 Portable version; AOO4.1.2 on Win7×64Prof_SP1
Zizi64
Offline
Last seen: 4 hours 41 min ago
Title: ★★★★★
Joined: 30 Sep 2010
Posts: 384
I tried saving the graphic

I tried saving the graphic png file as a jpg to see if it would hold the size (8.5×11) when inserted, but it does not. Is there another file type that would?

The PGN PNG type is the best file format for inserting, embedding into an .odt document.
You can resize it with a third party pixelgraphic image editor based on the relative (dpi) and absolute (pixels) resolution.
And you can resize the embedded pictures by the macro too.

Edited: I had a typo: PGN -> PNG.


Tibor Kovács Budapest, Hungary LO4.4.7, and LO5.1.1 Portable version; AOO4.1.2 on Win7×64Prof_SP1
Zizi64
Offline
Last seen: 4 hours 41 min ago
Title: ★★★★★
Joined: 30 Sep 2010
Posts: 384
bq.. sample new.docsample

sample new.doc
sample old.doc

DO NOT USE foreign file formats if you want operate with macro codes. Use the native, International Standard ODF fileformats (.odt in this case).


Tibor Kovács Budapest, Hungary LO4.4.7, and LO5.1.1 Portable version; AOO4.1.2 on Win7×64Prof_SP1
mtblankus
Offline
Last seen: 3 weeks 5 days ago
Title:
Joined: 9 Mar 2016
Posts: 4
Unfortunately, I have to save
Unfortunately, I have to save the final document in .doc format, so when I open old files, they are in that format.

I did figure out that if I select and copy the graphic that has been resized in one letter and paste into another letter, it keeps the proper sizing and anchoring. So, I guess that’s the easiest way to do it for me. I’m just posting that in case anyone looks up this thread for help with the same problem.

Thanks again for your suggestions!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.