This is a migrated thread and some comments may be shown as answers.

Style Does not apply while using RadClientExportManager

0 Answers 65 Views
ClientExportManager
This is a migrated thread and some comments may be shown as answers.
Sam
Top achievements
Rank 1
Sam asked on 28 Dec 2017, 06:39 AM

Hi this is my style:

    <style type="text/css">
        .style1
        {
            width: 100%;
        }

        .border_tr table tr
        {
            outline: 0.5px solid #999;
        }

            .border_tr table tr.nooutline
            {
                outline: 0px none;
            }

        .borders {
            outline: 0.5px solid #999;
        }
    </style>

The class ".border_tr table tr" applies normally but when I use RadClientExportManager It does not apply to the pdf which is generated.

My Script:

    <script type="text/javascript">
        function exportElement() {
            var exp = $find("<%= RadClientExportManager1.ClientID %>");
            exp.exportPDF($telerik.$("#PageContents"));
}
</script>

<telerik:RadClientExportManager runat="server" ID="RadClientExportManager1">
            <PdfSettings filename="Myfile.pdf" />
        </telerik:RadClientExportManager>

<input type="button" onclick="exportElement()" value="export" />

And my div where style is not applied in the pdf

 

<div class="border_tr" id="PageContents">
            <table width="100%">
                <tr>
                    <td>
                        <asp:Label ID="lblcltName" runat="server" Text="Client Name :" Font-Bold="true"></asp:Label>
                    </td>
                    <td align="left">
                        <asp:Label ID="lbltxtcltName" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblCaseManager" runat="server" Text="Case Manager :" Font-Bold="true"></asp:Label>
                    </td>
                    <td align="left">
                        <asp:Label ID="lbltxtCaseManager" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblphyreviewer" runat="server" Text="Physician Reviewer :" Font-Bold="true"></asp:Label>
                    </td>
                    <td align="left">
                        <asp:Label ID="lbltxtphyreviewer" runat="server"></asp:Label>
                    </td>
                </tr>

</table>

</div>

 

The pdf generated does not have any borders

No answers yet. Maybe you can help?

Tags
ClientExportManager
Asked by
Sam
Top achievements
Rank 1
Share this question
or