Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-13-2014, 09:16 PM
Prostrelov Prostrelov is offline Display txt in real-time Windows 7 64bit Display txt in real-time Office 2007
Novice
Display txt in real-time
 
Join Date: Jun 2014
Posts: 7
Prostrelov is on a distinguished road
Default Display txt in real-time

Is there any way to combine plain text file (.txt) and images interactively.
I mean, you still editing txt file in one plain text editor (like notepad etc.) and all changes are displayed in Word.


This type of work can be really great for programmers who need to write code with illustrations for students or books.
Maybe Word have plugins or scripts for this kind of workflow ?
Reply With Quote
  #2  
Old 06-15-2014, 12:24 AM
macropod's Avatar
macropod macropod is offline Display txt in real-time Windows 7 32bit Display txt in real-time Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Not with text files (at least, not without a third-party addin written for the purpose). Although you can link to them from Word using an INCLUDETEXT field, the link won't update until you both save the updated text file and refresh the field in Word. I am not aware of any a third-party addin written for this purpose.

With DDE-aware applications such as Excel, though, using a LINK field in Word to connect to an Excel range allows changes in the Excel range to update in Word in real-time.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 06-16-2014, 07:12 AM
Prostrelov Prostrelov is offline Display txt in real-time Windows 7 64bit Display txt in real-time Office 2007
Novice
Display txt in real-time
 
Join Date: Jun 2014
Posts: 7
Prostrelov is on a distinguished road
Default

INCLUDETEXT field works great for me, thanks.
But there is a problem with tabed text.
When i use tab key in plain text editors it makes equal (4-space) distance between words.
After i import this txt in word with Includetext, space between words are not equal.
How can i solve this ?
Reply With Quote
  #4  
Old 06-16-2014, 03:48 PM
macropod's Avatar
macropod macropod is offline Display txt in real-time Windows 7 32bit Display txt in real-time Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You will probably need to format the Word range to use a fixed-width font for that.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 06-17-2014, 12:47 AM
Prostrelov Prostrelov is offline Display txt in real-time Windows 7 64bit Display txt in real-time Office 2007
Novice
Display txt in real-time
 
Join Date: Jun 2014
Posts: 7
Prostrelov is on a distinguished road
Default

No it didn't help.
Reply With Quote
  #6  
Old 06-17-2014, 03:40 AM
macropod's Avatar
macropod macropod is offline Display txt in real-time Windows 7 32bit Display txt in real-time Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

The only way I can get variable-width spaces is if the paragraph format containing the INCLUDTEXT field in Word is set to 'justified'.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #7  
Old 06-17-2014, 09:41 AM
Prostrelov Prostrelov is offline Display txt in real-time Windows 7 64bit Display txt in real-time Office 2007
Novice
Display txt in real-time
 
Join Date: Jun 2014
Posts: 7
Prostrelov is on a distinguished road
Default

Justify didn't help.
To avoid any misunderstandings.
Here is screenshot of a problem text.

And by the way why does F9 change page orientation to Portrait.
Even when i already save docx document it still change page orientation.

You can change default template C:\Users\<UserName>\AppData\Roaming\Microsoft\Temp lates\Normal.dotm to landscape page orientation.
When you update INCLUDETEXT field whole document keep landscape page orientation and text in INCLUDETEXT field don't. It still have portrait orientation and
it can't be changed.


NOTEPAD++


WORD

Last edited by Prostrelov; 06-17-2014 at 12:11 PM.
Reply With Quote
  #8  
Old 06-17-2014, 04:34 PM
macropod's Avatar
macropod macropod is offline Display txt in real-time Windows 7 32bit Display txt in real-time Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Your layout suggests you have tab stops, not spaces between the columns. Have you formatted the Word paragraph to use the same tab intervals?

As for F9, that does not ordinarily change the page orientation in Word. It is for updating fields. If that is not happening, it suggests someone has re-assigned the F9 key on your system.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #9  
Old 06-17-2014, 09:03 PM
Prostrelov Prostrelov is offline Display txt in real-time Windows 7 64bit Display txt in real-time Office 2007
Novice
Display txt in real-time
 
Join Date: Jun 2014
Posts: 7
Prostrelov is on a distinguished road
Default

I would like to avoid using tab stops.
That's the main reason of using INCLUDETEXT.
The F9 button is updating INCLUDETEXT fields and for some reason applies default template to both: document and INCLUDETEXT field.

There is no reassigned buttons on this computer.
Reply With Quote
  #10  
Old 06-17-2014, 10:37 PM
macropod's Avatar
macropod macropod is offline Display txt in real-time Windows 7 32bit Display txt in real-time Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by Prostrelov View Post
I would like to avoid using tab stops.
That's the main reason of using INCLUDETEXT.
That's all very well, but if the tabs are in the source file, any link to it will replicate them. That's the whole point of having links...
Quote:
The F9 button is updating INCLUDETEXT fields and for some reason applies default template to both: document and INCLUDETEXT field.
F9 has no bearing at all on the page layout; it merely updates the field. And, since a plain text file has no portrait/landscape metadata, Word will insert it in a layout that respects the current page orientation. The mere fact that what gets inserted might be wider than it is high does not mean Word's page orientation has changed.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #11  
Old 06-18-2014, 12:59 AM
eNGiNe eNGiNe is offline Display txt in real-time Windows 7 32bit Display txt in real-time Office 2010 64bit
Expert
 
Join Date: Jan 2012
Location: Brussels [BE]
Posts: 746
eNGiNe is on a distinguished road
Default

Tabs vs spaces seems to come up quite often in Notepad++ groups – try http://stackoverflow.com/questions/8...nstead-of-tabs
Reply With Quote
  #12  
Old 06-21-2014, 02:52 AM
Prostrelov Prostrelov is offline Display txt in real-time Windows 7 64bit Display txt in real-time Office 2007
Novice
Display txt in real-time
 
Join Date: Jun 2014
Posts: 7
Prostrelov is on a distinguished road
Default

eNGiNe Thanks it works.

macropod, i shoot a video of problem process

first part with default word template
second part of video with edited default template
In edited default template i change page orientation to landscape

http://youtu.be/VXxB6WHr8L8
Reply With Quote
  #13  
Old 06-21-2014, 04:03 AM
macropod's Avatar
macropod macropod is offline Display txt in real-time Windows 7 32bit Display txt in real-time Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

The issue may have something to do with text file links. You can prevent the change back to portrait by inserting a continuous Section break into the document before the INCLUDETEXT field, and setting the document orientation to landscape.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #14  
Old 06-21-2014, 08:48 AM
Prostrelov Prostrelov is offline Display txt in real-time Windows 7 64bit Display txt in real-time Office 2007
Novice
Display txt in real-time
 
Join Date: Jun 2014
Posts: 7
Prostrelov is on a distinguished road
Default

ohhhhh i'm soooo happy
It works. Thank's macropod !!!
I would never find this out by myself for sure.
Reply With Quote
Reply

Tags
plugin, questions, script

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display and Edit a Presentation at the same time. Techabca PowerPoint 3 05-02-2014 11:00 AM
Powerpoint : Display time elapsed on each slide Firee PowerPoint 1 11-27-2013 08:18 AM
How to format cell in order to display *both* time and date SamyCode Excel 3 01-22-2013 03:30 PM
display in meeting 'When' show old time on 2007-10 but not in 2003 andrelabbe Outlook 0 07-18-2012 03:01 AM
Insert real-time weather and news updates in a Microsoft Powerpoint 2000 arandles PowerPoint 0 07-17-2010 05:23 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:12 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft