Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-mvc/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net mvc “使文本对齐”;文本对齐:对齐“;在telerik_Asp.net Mvc_User Interface_Telerik_Telerik Mvc_Telerik Reporting - Fatal编程技术网

Asp.net mvc “使文本对齐”;文本对齐:对齐“;在telerik

Asp.net mvc “使文本对齐”;文本对齐:对齐“;在telerik,asp.net-mvc,user-interface,telerik,telerik-mvc,telerik-reporting,Asp.net Mvc,User Interface,Telerik,Telerik Mvc,Telerik Reporting,我使用Telerik获得PDF输出。我想证明这篇文章的正确性 c# "<p style='text-align:center;'>" + result + "</p>" -->work "<p style='text-align:left; '>" + result + "</p>" -->work "<p style='text-align:right;'>" + result + "</p>"

我使用Telerik获得PDF输出。我想证明这篇文章的正确性

c# 
"<p style='text-align:center;'>" + result + "</p>"   -->work
"<p style='text-align:left; '>" + result + "</p>"   -->work
"<p style='text-align:right;'>" + result + "</p>"   -->work

"<p style='text-align:justify;'>" + result + "</p>"   --> don't work
c#
“

“+result+”

“-->工作 “

“+result+”

“-->不起作用
pdf文件中居中的文本

“+结果+”

“-->工作

telerik设置: telerik不支持文本对齐。我必须对齐文本,如何对齐 我能做到吗?

在最新版本中,它说支持text align:justify。当我尝试它时,它仍然不起作用。哈!
<p style='text-align:center;'>" + result + "</p>"   -->work
var cTyp = dt.Columns[i].DataType.ToString();
            if (cTyp == "System.Decimal")
            {
                textboxGroup.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Right;
                textBoxTable.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Right;

            }