We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Justify text from Report Text Tool

suwenchuan
7 - Meteor

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.

 

Sample Output.png

6 REPLIES 6
FinnCharlton
13 - Pulsar

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

ArnaldoSandoval
12 - Quasar

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

ArnaldoSandoval
12 - Quasar

Hi @suwenchuan 

 

I did some tests with the justification command and it did not work 😮

suwenchuan
7 - Meteor

Hi @FinnCharlton and @ArnaldoSandoval, thanks for your input. Greatly appreciated! Hope we get this feature soon! 🤞

caltang
17 - Castor
17 - Castor

Surprising we still don't have that yet. Would be a killer add-on!

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
caltang
17 - Castor
17 - Castor

@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.

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Labels
Top Solution Authors