It's all about the answers!

Ask a question

DNG & RPE Customized Report template - Word Stylesheet not recognized


Cédric Mirepoix (132) | asked Apr 01 '20, 11:13 a.m.
Hi,
I have a problem with customized report template in DNG.
I done the following process to add the new template :
  • Add dta template into /opt/IBM/JazzTeamServer-6061/server/conf/rm/reporting/initialization...
  • Add word stylesheet (.doc) into /opt/IBM/JazzTeamServer-6061/server/conf/rm/reporting/initialization... (with same name as dta template
  • Modify Manifest.mf (add the new entry)
The new template correctly appears in the report list, and we can publish a document
BUT the word stylesheet isn't recognized (styles, bookmarks...)

Have you got any idea for this problem?

Thanks

Accepted answer


permanent link
David Clark (2341352) | answered Apr 01 '20, 11:44 a.m.
edited Apr 01 '20, 11:46 a.m.

 The word style sheet goes into:

.../server/conf/rm/reporting/initialization/templates/word/my_doc.doc

The dta goes into:
../server/conf/rm/reporting/initialization/templates/rrdg/my_doc.dta

The MANIFEST.MF needs to point to both.
...MANIFEST.MF ...
Name: my_doc
Location: templates/rrdg/my_doc.dta
Label: My favorite template
Description:  A document template I like a lot
Content-Type: application/octet-stream
Is-Report: true
Context: view, module 

and run the initialization
Reinitialize the templates - https://<server>/rm/publish/initialize

Cédric Mirepoix selected this answer as the correct answer

Comments
Cédric Mirepoix commented Apr 01 '20, 12:33 p.m.
Thank you for your answer David, but it's what I do.

And the report works, but the stylesheet not


Cédric Mirepoix commented Apr 01 '20, 12:45 p.m.

And the stylesheet works when it is built directly with RPE


David Clark commented Apr 01 '20, 1:19 p.m.

That is good. 

Please do not take offense at the following, but these are what I would be checking.
The only things I can think of are:
a) The file names do not actually match.
b) The word document with the styles you want to use are NOT in the document, but are in NORMAL.DOT local to your machine that you are running RPE on and you only think the styles are in the document you put on the server.
c) The MANIFEST file is not correct.

I would check those.


Cédric Mirepoix commented Apr 01 '20, 2:40 p.m.
David,
Thank you for your help

a) The file name is "specLGMI.doc" (I already test to rename file, but unsucessfully
b) SOrry, I can't make a screenshot of my template (i am using the style "Req. Id" for example)

c) hereafter a copy of MANIFEST file (my new entry is LGMISpec)


....
Name: word
Location: templates/word
Content-Type: application/msword

Name: css
Location: templates/css
Content-Type: text/css

Name: xmlschema
Location: xmlschema
Content-Type: application/xml

Name: LGMISpec
Location: templates/rrdg/specLGMI.dta
Label: LGMI Spec
Description: LGMi - Template de publication de Specification
Content-Type: application/octet-stream
Is-Report: true



David Clark commented Apr 01 '20, 2:51 p.m.
It must be the same name and in the doc must be in the word folder.

Name: specLGMI
Location: templates/rrdg/specLGMI.dta
Label: LGMI Spec
Description: LGMi - Template de publication de Specification
Content-Type: application/octet-stream
Is-Report: true

D

Cédric Mirepoix commented Apr 02 '20, 4:32 a.m.
Thanks David, that's right! It was the Name.
Thank you for your help
showing 5 of 6 show 1 more comments

One other answer



permanent link
Subramanya Prasad Pilar (4.6k16) | answered Apr 01 '20, 12:58 p.m.
edited Apr 02 '20, 5:05 a.m.

Are you running RPE on the same machine where DNG is running or is it a different machine?


Comments
Cédric Mirepoix commented Apr 01 '20, 2:46 p.m.
Ah, it's maybe a good lead Pilar : No  I'm running them with different machine.
I think That Jazz Server is a Linux platform. I found that this is a problem for running Word macro, but I din't find this information for stylesheet...
Did you find anything about that?

Subramanya Prasad Pilar commented Apr 02 '20, 12:51 a.m.

What about other reports in DNG (for example, printartifact)? Do you see the stylesheet used by them?


Cédric Mirepoix commented Apr 02 '20, 3:44 a.m.

I tested the "Print Module Book" and I see the stylesheet...

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.