Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-25-2017, 05:03 AM
Esgrimidor Esgrimidor is offline Programmatically split a rtf word file without opening Windows XP Programmatically split a rtf word file without opening Office XP
Advanced Beginner
Programmatically split a rtf word file without opening
 
Join Date: Jun 2009
Posts: 35
Esgrimidor is on a distinguished road
Default Programmatically split a rtf word file without opening

I have a rtf file with text, images, tables, etc.



I need to split that file in several ones according to :

a) Strings in the rtf file.
The finals files are splitted from the original one between searched strings first occurrence.
Using a txt file or csv file with the strings to search. Or any other flexible method.

b) Bookmarks in the rtf file

Best Regards
Reply With Quote
  #2  
Old 03-26-2017, 01:15 AM
macropod's Avatar
macropod macropod is offline Programmatically split a rtf word file without opening Windows 7 64bit Programmatically split a rtf word file without opening 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

It is impossible to split any file without opening it. You need to be specific about your split criteria. One macro can't be expected to spit files by strings and/or bookmarks, let alone 'Using a txt file or csv file with the strings to search. Or any other flexible method'.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 03-26-2017, 09:23 AM
Esgrimidor Esgrimidor is offline Programmatically split a rtf word file without opening Windows XP Programmatically split a rtf word file without opening Office XP
Advanced Beginner
Programmatically split a rtf word file without opening
 
Join Date: Jun 2009
Posts: 35
Esgrimidor is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
It is impossible to split any file without opening it. You need to be specific about your split criteria. One macro can't be expected to spit files by strings and/or bookmarks, let alone 'Using a txt file or csv file with the strings to search. Or any other flexible method'.
Thanks macropod. But I have seen in web that with languages like Visual Studio, Java , C# and others is possible to modify a word file, extract, etc without opening.

I may be wrong.

I have observed in pdf world that "split" files by strings or bookmarks means by the page where is included, not rearranging the file by that point. Is this true ?

Best Regards
Reply With Quote
  #4  
Old 03-26-2017, 03:28 PM
macropod's Avatar
macropod macropod is offline Programmatically split a rtf word file without opening Windows 7 64bit Programmatically split a rtf word file without opening 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 Esgrimidor View Post
But I have seen in web that with languages like Visual Studio, Java , C# and others is possible to modify a word file, extract, etc without opening.

I may be wrong.
Indeed you are.
Quote:
Originally Posted by Esgrimidor View Post
I have observed in pdf world that "split" files by strings or bookmarks means by the page where is included, not rearranging the file by that point. Is this true ?
Unless the bookmark refers to a specific page and the 'string' is the bookmark name, I doubt it.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 03-27-2017, 11:17 AM
Esgrimidor Esgrimidor is offline Programmatically split a rtf word file without opening Windows XP Programmatically split a rtf word file without opening Office XP
Advanced Beginner
Programmatically split a rtf word file without opening
 
Join Date: Jun 2009
Posts: 35
Esgrimidor is on a distinguished road
Default

I don't understand.
I think is possible to modify word documents without human interaction.
So I don't need to open the files in the common sense of the word open.
That will be the word automation.

Best Regards

Edited : Gillmeister Word Text Replacer makes find & replace without opening the files. https://www.gillmeister-software.com...cer/start.aspx
Reply With Quote
  #6  
Old 03-27-2017, 04:10 PM
macropod's Avatar
macropod macropod is offline Programmatically split a rtf word file without opening Windows 7 64bit Programmatically split a rtf word file without opening 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 Esgrimidor View Post
I think is possible to modify word documents without human interaction.
Sure it is, but whatever process you use has to open the files - in the normal sense of the term - or the files need to be opened already.
Quote:
Originally Posted by Esgrimidor View Post
Edited : Gillmeister Word Text Replacer makes find & replace without opening the files.
False - it just doesn't use another application, instead it opens the files itself.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #7  
Old 03-28-2017, 05:23 AM
Esgrimidor Esgrimidor is offline Programmatically split a rtf word file without opening Windows XP Programmatically split a rtf word file without opening Office XP
Advanced Beginner
Programmatically split a rtf word file without opening
 
Join Date: Jun 2009
Posts: 35
Esgrimidor is on a distinguished road
Default

Then is possible to open multiple files without microsoft word or any other word processor software to manipulate.
In the sense "open" to operate the files, not to edit or write in the common sense of the word.

And the user will not see the opened files in the common use of the term open a file with "microsoft word".

Consequently we don't need to open the microsoft word files with microsoft word software.

Anyway my question is up !

Do you know software to manipulate rtf files without opening or see the file with microsoft word or any similar program ?
Do you know software to "programmatically open" word files ?
Reply With Quote
  #8  
Old 03-28-2017, 03:32 PM
macropod's Avatar
macropod macropod is offline Programmatically split a rtf word file without opening Windows 7 64bit Programmatically split a rtf word file without opening 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 Esgrimidor View Post
Then is possible to open multiple files without microsoft word or any other word processor software to manipulate.
Yes, using VBScript, for example. But if it's a file formatted for word-processing (e.g. doc, docx, rtf) and you want to manipulate its contents, then you'll either need to at least automate the relevant word processor or know a great deal about the file format's internal structure and how to manipulate it.
Quote:
Originally Posted by Esgrimidor View Post
In the sense "open" to operate the files, not to edit or write in the common sense of the word.

And the user will not see the opened files in the common use of the term open a file with "microsoft word".
Sure, and there's plenty of code on these forums that does just that. That code can include hiding documents when they're opened and/or even hiding the entire Word session when Word is being automated.
Quote:
Originally Posted by Esgrimidor View Post
Do you know software to manipulate rtf files without opening or see the file with microsoft word or any similar program ?
Do you know software to "programmatically open" word files ?
As indicated above, you could automate Word using VBScript, for example (you could even automate Word from any other Office application!) - and even hide the Word session while that's happening. Or you could use a Word macro to open & process the files without the user seeing them.

For code that demonstrates how Word could be automated from any Office application and the Word session hidden, see: https://www.msofficeforums.com/word-...html#post94106

For a demonstration of a Word macro hiding the files it opens, see: https://www.msofficeforums.com/word-...tml#post112783
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #9  
Old 03-29-2017, 11:15 AM
Esgrimidor Esgrimidor is offline Programmatically split a rtf word file without opening Windows XP Programmatically split a rtf word file without opening Office XP
Advanced Beginner
Programmatically split a rtf word file without opening
 
Join Date: Jun 2009
Posts: 35
Esgrimidor is on a distinguished road
Default

Thanks a lot Macropod.
There are a lot of options indeed.

Best Regards
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Programmatically split a rtf word file without opening Word VBA - Split Document By Headings - Save File Name As Heading Name jc491 Word VBA 7 01-21-2022 11:04 AM
Programmatically split a rtf word file without opening Mac Word file not opening right on PC nalamdari Word 3 09-25-2014 11:07 PM
Programmatically split a rtf word file without opening Issue when opening word file msadiqrajani Word 2 05-27-2011 08:11 PM
Programmatically split a rtf word file without opening MS Word - There was an error opening the file cookiegal Word 7 04-04-2011 12:37 AM
Programmatically get File Path for currently opened WORD document franferns Word 1 11-26-2009 12:36 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:25 AM.


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