Hello,
I am using Visual Studio 2012 for editing Reports using the Data Tools package. (Link to download for VS2012 Data Tools here. I am also using SQL Server 2008 R2).
I’ve been trying for the last couple of days of making Aspose.PDF work but to no success. I’ve run the .msi installer and ran the installation manually but no success yet on having aspose.pdf justify text for me.
I initially tried using the Configuration parameter of IsHtmlTagSupported in the rsreportserver.config. As such:
True
But couldn’t get Aspose.pdf to even interpret a Hello World . Please do notice that my reports have been appearing with the Evaluation Period watermark so when Exporting as PDF with Aspose.
I then tried by setting a parameter in the report by setting the IsHtmlTagSupported boolean parameter and selecting true everytime the report came up. Still nothing though.
Through all this I had been trying the tags and using the style=“text-align:justify;” but always just appeared as text and not interpreted HTML.
Then I kept digging and found that Justify could also be done by inserting
Aspose.TextAlignment
Justify
in the code of the Report in the textbox, but as reported in a previous Forum post, the example that appears in the documentation doesn’t take into consideration how textboxes are now split into Paragraphs and TextRuns. Everytime I tried to add these CustomProperties to the code via using the “View Code” method in VS 2012, as soon as I pressed save the CustomProperties would be deleted.
So I had to resort to going outside of VS2012 and editing in notepad and adding the CustomProperty tag there. Which worked, in terms of not being erased after saving. Final results as such with the TextBox:
true
true
Bacon ipsum dolor amet kevin meatloaf bacon sirloin. Corned beef t-bone spare ribs, alcatra shoulder kevin pig ball tip picanha strip steak. Salami ground round bresaola leberkas tenderloin brisket t-bone boudin doner pancetta alcatra sirloin biltong. Alcatra tongue pork spare ribs cupim doner. Pastrami short ribs beef pork. Frankfurter drumstick doner leberkas rump.
rd:DefaultNameTextbox4</rd:DefaultName>
1.38417in
0.30083in
1.125in
5.61459in
3
Aspose.TextAlignment
Justify
None
2pt
2pt
2pt
2pt
Sadly though, after quite a few hours of trying to make this work, which included editing the report in VS 2012 and taking it into the Report Manager and running it from there, eliminating the IsHtmlTagSupported parameter from the rsreportserver.config and the Report Parameter section see if it was affecting it, amongst other things. Still haven’t been able to make it work.
Please Advise