tag:blogger.com,1999:blog-9260572.post1747951871523262914..comments2023-07-23T18:54:16.226+03:00Comments on Essam Salah: Batch Processing Word Documents using PowerShellEssamhttp://www.blogger.com/profile/07193498512348517346noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-9260572.post-23430199842359055462017-02-02T17:15:14.067+02:002017-02-02T17:15:14.067+02:00When using this with the original docx it wors lik...When using this with the original docx it wors like a charm, but when the contents of docx changes (other documents) it doesn´t! <br />Is it possible to add contentdeviders (Tab, colon; semicolon; etc.) to devide and select contents. <br /><br />Thank you.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9260572.post-24551311602762088912014-03-25T18:19:24.620+02:002014-03-25T18:19:24.620+02:00It's an old post, but it's exactly what I ...It's an old post, but it's exactly what I needed to pull some data from contentControls. Thank you!Anonymoushttps://www.blogger.com/profile/04008848535275403278noreply@blogger.comtag:blogger.com,1999:blog-9260572.post-23201177175016104132012-08-07T03:01:38.612+02:002012-08-07T03:01:38.612+02:00Essam, this looks great and just what I'm loo...Essam, this looks great and just what I'm looking for. I downloaded your script and sample docs which execute perfectly. But I'm having a problem with my own forms. Can you offer some advice? The errors I get are....(followed by each field and value)...<br />Add-Member : Cannot bind argument to parameter 'Name' because it is null.<br />At C:\Temp\TestDocs2\Process-Documents.ps1:24 char:46<br />+ $item | Add-Member -type NoteProperty -name <<<< $control.Title -val<br />ue $control.Range.Text<br /> + CategoryInfo : InvalidData: (:) [Add-Member], ParameterBindingV <br /> alidationException<br /> + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,M <br /> icrosoft.PowerShell.Commands.AddMemberCommand<br /> <br />Add-Member : Cannot bind argument to parameter 'Name' because it is null.<br />At C:\Temp\TestDocs2\Process-Documents.ps1:24 char:46<br />+ $item | Add-Member -type NoteProperty -name <<<< $control.Title -val<br />ue $control.Range.Text<br /> + CategoryInfo : InvalidData: (:) [Add-Member], ParameterBindingV <br /> alidationException<br /> + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,M <br /> icrosoft.PowerShell.Commands.AddMemberCommand<br /> <br />Add-Member : Cannot bind argument to parameter 'Name' because it is null.<br />At C:\Temp\TestDocs2\Process-Documents.ps1:24 char:46<br />+ $item | Add-Member -type NoteProperty -name <<<< $control.Title -val<br />ue $control.Range.Text<br /> + CategoryInfo : InvalidData: (:) [Add-Member], ParameterBindingV <br /> alidationException<br /> + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,M <br /> icrosoft.PowerShell.Commands.AddMemberCommand<br /> <br />Legal Last Name : ZzWoolastname<br />Preferred Last Name : ZzWoolastname<br />Legal Middle Initial : U<br />Preferred Middle Initial : Click here to enter text.<br />Legal First Name : ZYName<br />Preferred First Name : ZYName<br />Last 4 SSN # : xxxx<br />Job Title : workerHere<br />Employee ID # : Click here to enter text.<br />Supervisor Name : WallName<br />Supervisor Phone # : 555 555 1212<br />Work Location : SOC<br />Effective Date : 8/13/12<br />Date Form Submitted : 8/5/12<br />Department/Domain : Workers Department<br />Status : Choose an item.<br />Comments : Click here to enter text. <br /><br />I even went so far as to name one of the content fields "Name" ugg. did not help! Do you have an idea what's with my form? thank you.Anonymoushttps://www.blogger.com/profile/05567417654547904180noreply@blogger.comtag:blogger.com,1999:blog-9260572.post-65470227014951463482009-10-28T16:55:12.010+02:002009-10-28T16:55:12.010+02:00Great job! This saved me a lot of time. I've j...Great job! This saved me a lot of time. I've just used the script with no modificationsSilverhttps://www.blogger.com/profile/15478684218430820459noreply@blogger.com