简体   繁体   English

如何制作 aspxdocumentviewer 方向 rtl?

[英]How to make a aspxdocumentviewer direction rtl?

My goal is to have a right justified report.我的目标是有一份正确的报告。 So I changed the text align from right to middle center justified because right justified alignment is not supported in document viewer I think.所以我将文本对齐从右对齐更改为中间对齐,因为我认为文档查看器不支持右对齐。 Now my text is justified but the direction is ltr.现在我的文字是合理的,但方向是 ltr。 How to make it rtl?如何使它成为rtl?

I tried to set a rtl style for created html from document viewer by css and jquery but it ignores styles.我试图为通过 css 和 jquery 从文档查看器创建的 html 设置 rtl 样式,但它忽略了样式。

I am using devexpress report suit 15.2 with asp.net webforms.我正在将 devexpress 报告套装 15.2 与 asp.net 网络表单一起使用。

How to do it?怎么做?

Finally I fount it.我终于找到了。

By adding the following code to the aspxdocumentviewer I was able to write css codes for it.通过将以下代码添加到 aspxdocumentviewer,我能够为它编写 css 代码。

<dx:ASPxDocumentViewer ID="ASPxDocumentViewer1" runat="server">
    <ToolbarItems>
        <dx:ReportToolbarButton ItemKind="Search" />
        <dx:ReportToolbarSeparator />
    </ToolbarItems>
    <SettingsReportViewer UseIFrame="false" />
</dx:ASPxDocumentViewer>

<style type="text/css">
    body{
        direction:rtl;
    }
</style>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM