Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

DNG & RPE Customized Report template - Word Stylesheet not recognized

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

0 votes


Accepted answer

Permanent link

 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

1 vote

Comments
Thank you for your answer David, but it's what I do.

And the report works, but the stylesheet not

And the stylesheet works when it is built directly with RPE

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.

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


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

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

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

0 votes

Comments
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?

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

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

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 7,494
× 6,121
× 1,324

Question asked: Apr 01 '20, 11:13 a.m.

Question was seen: 2,623 times

Last updated: Apr 02 '20, 5:05 a.m.

Confirmation Cancel Confirm