I am having a similar problem to the thread in the link below:
if (o."Attribute 1" > "XYZ."){ // **** User Mod Start ****
wordDumpObjectVBA(o."Attribute 1" " " o."Object Text")
exportStepProgress
}
else { // **** Mod End ****
wordDumpObjectVBA(o)
exportStepProgress
} // **** remove this bracket if this dosnet work. ****
SystemAdmin - Tue Mar 19 12:19:40 EDT 2013 |
Re: Merging Attributes on Word Export
This:
You are allowed to do this:
This is indeed a string:
-Louie |
Re: Merging Attributes on Word Export llandale - Tue Mar 19 14:24:30 EDT 2013
This:
You are allowed to do this:
This is indeed a string:
-Louie
Ok, that helped but now I still have a problem with the wordDumpObjectVBA. Unless I misunderstood some of the previous information you provided. Here is the new error and the updated modified code per the previous comments.
if (o."Attribute 1" ""> "XYZ."){ // **** User Mod Start ****
string temp = o."Attribute 1" "" " " o."Object Text" ""
wordDumpObjectVBA(temp)
exportStepProgress
}
else { // **** Mod End ****
wordDumpObjectVBA(o)
exportStepProgress
} // **** remove this bracket if this dosnet work. ****
|
Re: Merging Attributes on Word Export SystemAdmin - Tue Mar 19 15:44:38 EDT 2013
Ok, that helped but now I still have a problem with the wordDumpObjectVBA. Unless I misunderstood some of the previous information you provided. Here is the new error and the updated modified code per the previous comments.
if (o."Attribute 1" ""> "XYZ."){ // **** User Mod Start ****
string temp = o."Attribute 1" "" " " o."Object Text" ""
wordDumpObjectVBA(temp)
exportStepProgress
}
else { // **** Mod End ****
wordDumpObjectVBA(o)
exportStepProgress
} // **** remove this bracket if this dosnet work. ****
The declaration for the wordDumpObjectVBA function is void wordDumpObjectVBA(Object o)
Paul Miller,
|
Re: Merging Attributes on Word Export SystemAdmin - Tue Mar 19 16:36:31 EDT 2013 The declaration for the wordDumpObjectVBA function is void wordDumpObjectVBA(Object o)
Paul Miller,
|
Re: Merging Attributes on Word Export SystemAdmin - Wed Mar 20 09:44:23 EDT 2013
Hi,
string applyStyleLockPasteInvokeBuf(OleAutoObj objSelection,
Buffer s,
string styleName)
|
Re: Merging Attributes on Word Export adevicq - Wed Mar 20 09:57:44 EDT 2013
Hi,
string applyStyleLockPasteInvokeBuf(OleAutoObj objSelection,
Buffer s,
string styleName)
I gave this a shot but, again I am either misunderstanding or this is not working properly. The code runs but I am only getting the items that don't have "Attribute 1" populated. So If I have ten objects in my module and seven of them have "Attribute 1" populated only three objects are getting exported. I am not sure the function "applyStyleLockPasteInvokeBuf" works the way I want. The fact that it is only exporting some of the objects means to me that the "If" statement is working correctly. It is just the export part of the combined items that is not getting exported.
if (o."Attributee 1" "" > "XYZ."){ // **** User Mod Start ****
Buffer temp = create
temp = o."Attribute 1" "" " " o."Object Text" ""
string applyStyleLockPasteInvokeBuf(OleAutoObj objSelection,
Buffer temp,
string styleName)
exportStepProgress
}
else { // **** Mod End ****
wordDumpObjectVBA(o)
exportStepProgress
} // **** remove this bracket if this doesn't work. ****
|
Re: Merging Attributes on Word Export SystemAdmin - Wed Mar 20 11:23:09 EDT 2013
I gave this a shot but, again I am either misunderstanding or this is not working properly. The code runs but I am only getting the items that don't have "Attribute 1" populated. So If I have ten objects in my module and seven of them have "Attribute 1" populated only three objects are getting exported. I am not sure the function "applyStyleLockPasteInvokeBuf" works the way I want. The fact that it is only exporting some of the objects means to me that the "If" statement is working correctly. It is just the export part of the combined items that is not getting exported.
if (o."Attributee 1" "" > "XYZ."){ // **** User Mod Start ****
Buffer temp = create
temp = o."Attribute 1" "" " " o."Object Text" ""
string applyStyleLockPasteInvokeBuf(OleAutoObj objSelection,
Buffer temp,
string styleName)
exportStepProgress
}
else { // **** Mod End ****
wordDumpObjectVBA(o)
exportStepProgress
} // **** remove this bracket if this doesn't work. ****
The method exports what you tell it to export. You probably do not enter the piece of code. Print something before the call to applyStyleLockPasteInvokeBuf. I'm pretty sure that you will discover that your condition is not correct... Alain |
Re: Merging Attributes on Word Export adevicq - Wed Mar 20 13:10:45 EDT 2013 XYZ.XXX Object Text Sentence XYZ.XXX Object Text Sentence XYZ.XXX Object Text Sentence XYZ.XXX Object Text Sentence XYZ.XXX Object Text Sentence XYZ.XXX Object Text Sentence This happened for all the items that have “Attribute 1” filled in. to me this proves my “IF” statement is working properly the method to export the information to the word file is not right. |
Re: Merging Attributes on Word Export SystemAdmin - Wed Mar 20 14:28:38 EDT 2013 You said that my earlier suggestion to use an Attribute DXL had been tried but required post export formatting of some sort. Does that you mean you tried to export in Book format and you still had to do soem clean up, or you thought that you had to use Table style to do such an export? The Book style export works to whatever is the currently visible View in the DOORS module. If you insert a column where a DXL Attribute has performed the concatenation for you, then that DXL Attribute column and all other visible columns in the VIew should export in Book style as required. Paul Miller, Melbourne, Australia |
Re: Merging Attributes on Word Export SystemAdmin - Wed Mar 20 17:14:50 EDT 2013 Paul Miller, Melbourne, Australia No Title/Heading: : XYZ.XXX Object Text Sentence With Title/Heading: Example: XYZ.XXX Object Text Sentence So, I would have to do a global search every export to find the colon or the title and colon. This was not a desirable situation especially if using the “paragraph style attribute in the module as when making this combined DXL layout the paragraph style attribute doesn’t get applied for some reason. Which is why I started down this road of modifying the WORD export DXL Code, from all the assistance everyone has provided above this is very close to the proper result but I am stuck on the exporting issue as from the previous few post my if statement is executing properly it is just not exporting the information right. Again I greatly appreciate all the feedback everyone is providing. |