Hi everyone,
I am currently working on a workflow that requires me to justify text output in the final report.
I am using the Report Text Tool, but it seems to only provide options for Align Left, Align Right, and Align Center.
Is there a method to justify my text, perhaps using XML or another workaround?
I have attached some dummy data and an example of the desired output for reference. Any help or pointers towards potential solutions would be greatly appreciated.
Thank you in advance.
Hi @suwenchuan ,
It seems there is currently no way to do this - other users have tried xml hacking in the past with little success: https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Justify-text-in-report-text-to...
The idea has been suggested to Alteryx in other posts, so hopefully the feature comes along soon
Hi @suwenchuan
It could be possible, internally the Report Text's text is just RTF (Rich Text Format) and these are the justification codes: RTF: Align Text - Left, Right, Centered and Justified you just to edit the Report Text's XML code to type in the justification command. I did not try printing, but the text is nicely justified on my screen.
hth
Arnaldo
Hi @FinnCharlton and @ArnaldoSandoval, thanks for your input. Greatly appreciated! Hope we get this feature soon! 🤞
Surprising we still don't have that yet. Would be a killer add-on!
@suwenchuan a like brought me back to this topic. I gave it some more thought, could you integrate Python tool with this?
https://stackoverflow.com/questions/24031011/python-docx-library-text-align
Not sure if it's something workable... since it involves reading the word docs generated to force align them I think.
User | Count |
---|---|
56 | |
26 | |
24 | |
21 | |
21 |