A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Tables
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Getting Imformation from external files



 
 
Thread Tools Display Modes
  #1  
Old December 2nd, 2008, 03:27 AM posted to microsoft.public.word.tables
Steve
external usenet poster
 
Posts: 2,662
Default Getting Imformation from external files

Hi,
I am making a product catalouge for my company and I would like to be able
to automatically update the price and possibly product desrciption from an
external file, based on an entered product code. There would be a layout
like this, with each part being in a new row, I would like the sections
to be updated from the exteranl file (either .csv, .xls, or .xml).

Part No. XXXXXXXX
Auto Update Description for XXXXXXXX

Price Auto Update Price for XXXXXXXX

Part No. YYYYYYYY
Auto Update Description for YYYYYYYY

Price Auto Update Price for YYYYYYYY

Thanks in advance
Steve
  #2  
Old December 2nd, 2008, 04:08 AM posted to microsoft.public.word.tables
Suzanne S. Barnhill
external usenet poster
 
Posts: 31,786
Default Getting Imformation from external files

Investigate the IncludeText field; see http://daiya.mvps.org/includetext.htm

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

"Steve" wrote in message
...
Hi,
I am making a product catalouge for my company and I would like to be able
to automatically update the price and possibly product desrciption from an
external file, based on an entered product code. There would be a layout
like this, with each part being in a new row, I would like the
sections
to be updated from the exteranl file (either .csv, .xls, or .xml).

Part No. XXXXXXXX
Auto Update Description for XXXXXXXX

Price Auto Update Price for XXXXXXXX

Part No. YYYYYYYY
Auto Update Description for YYYYYYYY

Price Auto Update Price for YYYYYYYY

Thanks in advance
Steve



  #3  
Old December 2nd, 2008, 11:16 PM posted to microsoft.public.word.tables
Steve
external usenet poster
 
Posts: 2,662
Default Getting Imformation from external files

Thanks Suzanne, but I can't see how this will work. I don't have a very good
understanding of fields, anychance you could give me a bit more direction.

Thanks
Steve

"Suzanne S. Barnhill" wrote:

Investigate the IncludeText field; see http://daiya.mvps.org/includetext.htm

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

"Steve" wrote in message
...
Hi,
I am making a product catalouge for my company and I would like to be able
to automatically update the price and possibly product desrciption from an
external file, based on an entered product code. There would be a layout
like this, with each part being in a new row, I would like the
sections
to be updated from the exteranl file (either .csv, .xls, or .xml).

Part No. XXXXXXXX
Auto Update Description for XXXXXXXX

Price Auto Update Price for XXXXXXXX

Part No. YYYYYYYY
Auto Update Description for YYYYYYYY

Price Auto Update Price for YYYYYYYY

Thanks in advance
Steve




  #4  
Old December 3rd, 2008, 04:26 AM posted to microsoft.public.word.tables
Suzanne S. Barnhill
external usenet poster
 
Posts: 31,786
Default Getting Imformation from external files

You create an external document that contains the desired data, bookmarked
appropriately. You insert the IncludeText fields referring to those
bookmarks. When you update the data in the external file, the data in your
document is updated.

Alternatively, you put the data in an Excel file and use a catalog/directory
merge to create the catalog.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

"Steve" wrote in message
news
Thanks Suzanne, but I can't see how this will work. I don't have a very
good
understanding of fields, anychance you could give me a bit more direction.

Thanks
Steve

"Suzanne S. Barnhill" wrote:

Investigate the IncludeText field; see
http://daiya.mvps.org/includetext.htm

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

"Steve" wrote in message
...
Hi,
I am making a product catalouge for my company and I would like to be
able
to automatically update the price and possibly product desrciption from
an
external file, based on an entered product code. There would be a
layout
like this, with each part being in a new row, I would like the
sections
to be updated from the exteranl file (either .csv, .xls, or .xml).

Part No. XXXXXXXX
Auto Update Description for XXXXXXXX

Price Auto Update Price for XXXXXXXX

Part No. YYYYYYYY
Auto Update Description for YYYYYYYY

Price Auto Update Price for YYYYYYYY

Thanks in advance
Steve








  #5  
Old December 3rd, 2008, 05:29 AM posted to microsoft.public.word.tables
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
Default Getting Imformation from external files

Why don't you use a Directory type mail merge?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Steve" wrote in message
...
Hi,
I am making a product catalouge for my company and I would like to be able
to automatically update the price and possibly product desrciption from an
external file, based on an entered product code. There would be a layout
like this, with each part being in a new row, I would like the
sections
to be updated from the exteranl file (either .csv, .xls, or .xml).

Part No. XXXXXXXX
Auto Update Description for XXXXXXXX

Price Auto Update Price for XXXXXXXX

Part No. YYYYYYYY
Auto Update Description for YYYYYYYY

Price Auto Update Price for YYYYYYYY

Thanks in advance
Steve



  #6  
Old December 4th, 2008, 12:11 AM posted to microsoft.public.word.tables
Steve
external usenet poster
 
Posts: 2,662
Default Getting Imformation from external files

Thanks for the replies. I don't think the directory mail merge will do what
I need. The exteranl file contains more information than is required and is
not divided into the correct sections. I really need something that will
search the exteranl file for a part no and get the associated information.
The include text field may work, I will do some more reading.

Thanks
Steve

"Doug Robbins - Word MVP" wrote:

Why don't you use a Directory type mail merge?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Steve" wrote in message
...
Hi,
I am making a product catalouge for my company and I would like to be able
to automatically update the price and possibly product desrciption from an
external file, based on an entered product code. There would be a layout
like this, with each part being in a new row, I would like the
sections
to be updated from the exteranl file (either .csv, .xls, or .xml).

Part No. XXXXXXXX
Auto Update Description for XXXXXXXX

Price Auto Update Price for XXXXXXXX

Part No. YYYYYYYY
Auto Update Description for YYYYYYYY

Price Auto Update Price for YYYYYYYY

Thanks in advance
Steve




  #7  
Old December 7th, 2008, 06:37 AM posted to microsoft.public.word.tables
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
Default Getting Imformation from external files

How is the data arranged in the external file?
--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Steve" wrote in message
...
Thanks for the replies. I don't think the directory mail merge will do
what
I need. The exteranl file contains more information than is required and
is
not divided into the correct sections. I really need something that will
search the exteranl file for a part no and get the associated information.
The include text field may work, I will do some more reading.

Thanks
Steve

"Doug Robbins - Word MVP" wrote:

Why don't you use a Directory type mail merge?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Steve" wrote in message
...
Hi,
I am making a product catalouge for my company and I would like to be
able
to automatically update the price and possibly product desrciption from
an
external file, based on an entered product code. There would be a
layout
like this, with each part being in a new row, I would like the
sections
to be updated from the exteranl file (either .csv, .xls, or .xml).

Part No. XXXXXXXX
Auto Update Description for XXXXXXXX

Price Auto Update Price for XXXXXXXX

Part No. YYYYYYYY
Auto Update Description for YYYYYYYY

Price Auto Update Price for YYYYYYYY

Thanks in advance
Steve






  #8  
Old December 8th, 2008, 03:08 AM posted to microsoft.public.word.tables
Steve
external usenet poster
 
Posts: 2,662
Default Getting Imformation from external files

Hi Doug,
The exteranl file contains data like this:

StockCode,Description,SellingPrice
AF-070-083,Cultiva ATC Power Cable,193
AF-110-0007-01,A5 Rover DUO,29750
AF-110-0007-03,A5 Rover DUO,0
AF-110-0009-01,A5 Rover QUAD,34750

That is the .csv file any way, the XML looks like this:

FormattedReportObjects
FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string"
FieldName="{InvMaster.StockCode}"ObjectNameStoc kCode1/ObjectName
FormattedValueAF-070-083/FormattedValue
ValueAF-070-083/Value
/FormattedReportObject
FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string"
FieldName="{InvMaster.Description}"ObjectNameDe scription1/ObjectName
FormattedValueCultiva ATC Power Cable/FormattedValue
ValueCultiva ATC Power Cable/Value
/FormattedReportObject
FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string"
FieldName="{InvMaster.Supplier}"ObjectNameSuppl ier1/ObjectName
FormattedValueNOVA001/FormattedValue
ValueNOVA001/Value
/FormattedReportObject
FormattedReportObject xsi:type="CTFormattedField" Type="xsd:float"
FieldName="{InvMaster.MaterialCost}"ObjectNameM aterialCost1/ObjectName
FormattedValue84.18/FormattedValue
Value84.18/Value
/FormattedReportObject
FormattedReportObject xsi:type="CTFormattedField" Type="xsd:float"
FieldName="{InvPrice.SellingPrice}"ObjectNameSe llingPrice1/ObjectName
FormattedValue193.00/FormattedValue
Value193.00/Value
/FormattedReportObject
/FormattedReportObjects

with a few higher level objects ommited.

Thanks
Steve

"Doug Robbins - Word MVP" wrote:

How is the data arranged in the external file?
--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Steve" wrote in message
...
Thanks for the replies. I don't think the directory mail merge will do
what
I need. The exteranl file contains more information than is required and
is
not divided into the correct sections. I really need something that will
search the exteranl file for a part no and get the associated information.
The include text field may work, I will do some more reading.

Thanks
Steve

"Doug Robbins - Word MVP" wrote:

Why don't you use a Directory type mail merge?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Steve" wrote in message
...
Hi,
I am making a product catalouge for my company and I would like to be
able
to automatically update the price and possibly product desrciption from
an
external file, based on an entered product code. There would be a
layout
like this, with each part being in a new row, I would like the
sections
to be updated from the exteranl file (either .csv, .xls, or .xml).

Part No. XXXXXXXX
Auto Update Description for XXXXXXXX

Price Auto Update Price for XXXXXXXX

Part No. YYYYYYYY
Auto Update Description for YYYYYYYY

Price Auto Update Price for YYYYYYYY

Thanks in advance
Steve






  #9  
Old December 8th, 2008, 07:14 AM posted to microsoft.public.word.tables
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
Default Getting Imformation from external files

If you use a Directory type mail merge main document in which you insert

Part No. StockCode¶
Description¶
Price Selling Price¶


When you execute that merge to a new document, you will get

Part No. AF-070-083
Cultiva ATC Power Cable
Price 193

Part No. AF-110-0007-01
A5 Rover DUO
Price 29750

Part No. AF-110-0007-03
A5 Rover DUO
Price 0

Part No. AF-110-0009-01
A5 Rover QUAD
Price 34750

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Steve" wrote in message
...
Hi Doug,
The exteranl file contains data like this:

StockCode,Description,SellingPrice
AF-070-083,Cultiva ATC Power Cable,193
AF-110-0007-01,A5 Rover DUO,29750
AF-110-0007-03,A5 Rover DUO,0
AF-110-0009-01,A5 Rover QUAD,34750

That is the .csv file any way, the XML looks like this:

FormattedReportObjects
FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string"
FieldName="{InvMaster.StockCode}"ObjectNameStoc kCode1/ObjectName
FormattedValueAF-070-083/FormattedValue
ValueAF-070-083/Value
/FormattedReportObject
FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string"
FieldName="{InvMaster.Description}"ObjectNameDe scription1/ObjectName
FormattedValueCultiva ATC Power Cable/FormattedValue
ValueCultiva ATC Power Cable/Value
/FormattedReportObject
FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string"
FieldName="{InvMaster.Supplier}"ObjectNameSuppl ier1/ObjectName
FormattedValueNOVA001/FormattedValue
ValueNOVA001/Value
/FormattedReportObject
FormattedReportObject xsi:type="CTFormattedField" Type="xsd:float"
FieldName="{InvMaster.MaterialCost}"ObjectNameM aterialCost1/ObjectName
FormattedValue84.18/FormattedValue
Value84.18/Value
/FormattedReportObject
FormattedReportObject xsi:type="CTFormattedField" Type="xsd:float"
FieldName="{InvPrice.SellingPrice}"ObjectNameSe llingPrice1/ObjectName
FormattedValue193.00/FormattedValue
Value193.00/Value
/FormattedReportObject
/FormattedReportObjects

with a few higher level objects ommited.

Thanks
Steve

"Doug Robbins - Word MVP" wrote:

How is the data arranged in the external file?
--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Steve" wrote in message
...
Thanks for the replies. I don't think the directory mail merge will do
what
I need. The exteranl file contains more information than is required
and
is
not divided into the correct sections. I really need something that
will
search the exteranl file for a part no and get the associated
information.
The include text field may work, I will do some more reading.

Thanks
Steve

"Doug Robbins - Word MVP" wrote:

Why don't you use a Directory type mail merge?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Steve" wrote in message
...
Hi,
I am making a product catalouge for my company and I would like to
be
able
to automatically update the price and possibly product desrciption
from
an
external file, based on an entered product code. There would be a
layout
like this, with each part being in a new row, I would like the
sections
to be updated from the exteranl file (either .csv, .xls, or .xml).

Part No. XXXXXXXX
Auto Update Description for XXXXXXXX

Price Auto Update Price for XXXXXXXX

Part No. YYYYYYYY
Auto Update Description for YYYYYYYY

Price Auto Update Price for YYYYYYYY

Thanks in advance
Steve








  #10  
Old December 8th, 2008, 10:22 PM posted to microsoft.public.word.tables
Steve
external usenet poster
 
Posts: 2,662
Default Getting Imformation from external files


Hi Doug,
My only concern with that is that file doesn't contain the parts in the
order I require. For instance AF-110-0007-01 occours before AF-070-083 and
in a different section of the catalouge. I need a way to maintain the
formatting I already have and change the prices and descriptions for the part
numbers already entered.

Thanks
Steve


"Doug Robbins - Word MVP" wrote:

If you use a Directory type mail merge main document in which you insert

Part No. StockCode¶
Description¶
Price Selling Price¶
¶

When you execute that merge to a new document, you will get

Part No. AF-070-083
Cultiva ATC Power Cable
Price 193

Part No. AF-110-0007-01
A5 Rover DUO
Price 29750

Part No. AF-110-0007-03
A5 Rover DUO
Price 0

Part No. AF-110-0009-01
A5 Rover QUAD
Price 34750

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Steve" wrote in message
...
Hi Doug,
The exteranl file contains data like this:

StockCode,Description,SellingPrice
AF-070-083,Cultiva ATC Power Cable,193
AF-110-0007-01,A5 Rover DUO,29750
AF-110-0007-03,A5 Rover DUO,0
AF-110-0009-01,A5 Rover QUAD,34750

That is the .csv file any way, the XML looks like this:

FormattedReportObjects
FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string"
FieldName="{InvMaster.StockCode}"ObjectNameStoc kCode1/ObjectName
FormattedValueAF-070-083/FormattedValue
ValueAF-070-083/Value
/FormattedReportObject
FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string"
FieldName="{InvMaster.Description}"ObjectNameDe scription1/ObjectName
FormattedValueCultiva ATC Power Cable/FormattedValue
ValueCultiva ATC Power Cable/Value
/FormattedReportObject
FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string"
FieldName="{InvMaster.Supplier}"ObjectNameSuppl ier1/ObjectName
FormattedValueNOVA001/FormattedValue
ValueNOVA001/Value
/FormattedReportObject
FormattedReportObject xsi:type="CTFormattedField" Type="xsd:float"
FieldName="{InvMaster.MaterialCost}"ObjectNameM aterialCost1/ObjectName
FormattedValue84.18/FormattedValue
Value84.18/Value
/FormattedReportObject
FormattedReportObject xsi:type="CTFormattedField" Type="xsd:float"
FieldName="{InvPrice.SellingPrice}"ObjectNameSe llingPrice1/ObjectName
FormattedValue193.00/FormattedValue
Value193.00/Value
/FormattedReportObject
/FormattedReportObjects

with a few higher level objects ommited.

Thanks
Steve

"Doug Robbins - Word MVP" wrote:

How is the data arranged in the external file?
--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Steve" wrote in message
...
Thanks for the replies. I don't think the directory mail merge will do
what
I need. The exteranl file contains more information than is required
and
is
not divided into the correct sections. I really need something that
will
search the exteranl file for a part no and get the associated
information.
The include text field may work, I will do some more reading.

Thanks
Steve

"Doug Robbins - Word MVP" wrote:

Why don't you use a Directory type mail merge?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Steve" wrote in message
...
Hi,
I am making a product catalouge for my company and I would like to
be
able
to automatically update the price and possibly product desrciption
from


an
external file, based on an entered product code. There would be a
layout
like this, with each part being in a new row, I would like the
sections
to be updated from the exteranl file (either .csv, .xls, or .xml).

Part No. XXXXXXXX
Auto Update Description for XXXXXXXX

Price Auto Update Price for XXXXXXXX

Part No. YYYYYYYY
Auto Update Description for YYYYYYYY

Price Auto Update Price for YYYYYYYY

Thanks in advance
Steve









 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:22 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.