Greetings all,
I have just discovered the margin properties in the PDFSettings sub-category of the RadClientExportManager.
Using the left & right margins, I could address some of my concerns as to how close the edge of the export comes to the edge of the displayed area, I cannot seem to make the bottom margin value work.
Across my exports, I am using:
RadClientExportManager1.PdfSettings.MarginLeft = "15"
RadClientExportManager1.PdfSettings.MarginRight = "15"
RadClientExportManager1.PdfSettings.MarginBottom = "30"
Can anyone let me know if there is a problem in setting the bottom margin, or any of the margins? Or even how the inner workings of the control handles blank space or padding around the indicated div?
Thanks in advance!
We are exporting our webpage to a PDF using RadClientExportManager. There are two <img> on the webpage, one is included in the downloaded PDF, but one is not on the PDF. The one that is on the PDF has it's "src" set in the HTML tag, and the image that is not showing up on the PDF has its source set in the code behind from an API call.
Image that is working:
<img src="~/Logo.png" runat="server" height="120" align="Right"/>
Image that is not working:
HTML:
<img id="imgProfilePicture" runat="server" align="left"/>
VB.net:
imgProfilePicture.Src = API_Call.SelectToken("e[10].image_url")
imgProfilePicture.Height = 120
Both images are visible on the website, just not on the downloaded PDF.
Any help would be appreciated, thank you.
Hello,
Any chart that renders as SVG or any .svg image end up blank when using the RadClientExportManager.
The blank chart in the attached image is rendered as svg. The first donut chart renders as SVG but I convert it to png so it shows. If I convert them to an svg file first they are still blank. The other charts are using telerik charts.
This happens for exportPDF, exportIMAGE and exportSVG in the RadClientExportManager. Anything that renders as an SVG ends up blank.
I tried your demo online and it renders the map blank as well. So I'm assuming the map renders as an SVG. Is there a way to fix this?
Thanks,
Jesse
I had to use a custom chart legend but can't seem to figure out how to export the custom legend when exporting to pdf.
html:
<telerik:RadButton RenderMode="Lightweight" runat="server" OnClientClicked="exportChart1" Text="Export to PDF" AutoPostBack="false" UseSubmitBehavior="false"></telerik:RadButton>
Javascript:
function exportChart1() {
var $ = $telerik.$;
var ddlValue = $find("<%= ddlChart1.ClientID %>").get_selectedItem().get_value();
var selectedChart = "." + ddlValue;
/*The selectedChart is found by the CssClass of the chart*/
$find('<%=RadClientExportManager1.ClientID%>').exportPDF($(selectedChart));
}
The custom legend :
Hi
I'm having trouble adding bold version of Calibri font to client export manager pdf setting. Here's what I'm using :
RadClientExportManager1.PdfSettings.Fonts.Add("Calibri", "Styles/Fonts/Calibri.ttf");
RadClientExportManager1.PdfSettings.Fonts.Add("Calibri Bold", "Styles/Fonts/CalibriBold.ttf");
When I export my element to pdf, parts of text that are not bold look fine, but bold parts fonts is changed to something else. What can I do to add Calibri Bold to pdf setting?
Thanks
Dear Sir/Madam,
i am using telerik ajax dll version (Telerik.web.ui.dll) 2019.1.215.45 in asp.net application. i
have dynamically created radgrid which has more than 70 rows, so when i am
trying to export radgrid to pdf using RadClientExportManager [exporting html
content to pdf]. The lengthy radgrid is not continuing to next page in pdf. the
first 50 rows are printed in first page the rest of the rows are not getting
printed in second page.
Hey guys, i have been coding a radgrid with the option to export the data as excel and word. That all works just fine also the export, but when i change visible true/false the export buttons suddenly will not trigger as the first time.
I have these export buttons inside a radpagelayout. The 3'rd button "btnAddP" has visibility change, so when i click it it will hide the export buttons. When the visibility is back to export buttons, they don't do anything when clicked. I wanted to hear some suggestions from you guys and maybe if someone have had the same issue and how to handle it properly.
01.
<Columns>
02.
<telerik:LayoutColumn Span=
"8"
>
03.
<telerik:RadPageLayout ID=
"rplRadgrid"
runat=
"server"
>
04.
<telerik:LayoutRow>
05.
<Columns>
06.
<telerik:LayoutColumn Span=
"4"
>
07.
<telerik:RadButton ID=
"ibtnExportAsExcel"
runat=
"server"
ToolTip=
"Excel"
OnClick=
"ibtnExportAsExcel_Click"
CssClass=
"Margin"
>
08.
<Image ImageUrl=
"~/Images/filetype-tiny.xls.png"
/>
09.
</telerik:RadButton>
10.
<telerik:RadButton ID=
"ibtnExportAsWord"
runat=
"server"
ToolTip=
"Word"
OnClick=
"ibtnExportAsWord_Click"
11.
<Image ImageUrl=
"~/Images/filetype-tiny.doc.png"
/>
12.
</telerik:RadButton>
13.
<telerik:RadButton ID=
"btnAddP"
runat=
"server"
OnClick=
"btnAddParticipants_Click"
14.
<Image ImageUrl=
"../Images/edit-tiny.png"
/>
15.
</telerik:RadButton>
16.
</telerik:LayoutColumn>
17.
</Columns>
18.
</telerik:LayoutRow>
......
void
ConfigureExport()
{
radgrid.ExportSettings.UseItemStyles =
radgrid.ExportSettings.ExportOnlyData =
radgrid.ExportSettings.IgnorePaging =
radgrid.ExportSettings.OpenInNewWindow =
true
;
radgrid.ExportSettings.FileName = Resources.c3.Export;
}
protected
void
ibtnExportAsExcel_Click(
object
sender, EventArgs e)
{
ConfigureExport();
radgrid.MasterTableView.ExportToExcel();
}
protected
void
ibtnExportAsWord_Click(
object
sender, EventArgs e)
{
ConfigureExport();
radgrid.MasterTableView.ExportToWord();
}
protected
void
btnAddP_Click(
object
sender, EventArgs e)
{
tmrChatBoard.Enabled =
false
;
rplUpdateP.Visible =
true
;
rplRadgrid.Visible =
false
;
}
Hi,
i am trying to export multiple radgrid and radhtmlchart to multiple pdf pages. i am able to export but content on aspx page is very big on pdf file. the contents are getting cut and only left most part is partially printed. how can i make contents in my webform (aspx) get printed as is to pdf with same size.
page break is working fine, but the content is getting exported so big that only left more content is printed little.
i have followed the below links but no use:
https://docs.telerik.com/devtools/aspnet-ajax/controls/clientexportmanager/functionality/export-html-elements
https://docs.telerik.com/devtools/aspnet-ajax/controls/clientexportmanager/functionality/pdf-multi-page-export
HI All,
I am working on asp.net application. Have added multiple
radgrid and multiple radhtmlchart programmatically to div. when I try exporting
the div (which has multiple radgrid and multiple radhtmlchart) using RadClientExportManager I get only radgrids
downloaded as pdf but not radhtmlchart. I googling I found this link https://feedback.telerik.com/aspnet-ajax/1377381-radclientexportmanager-does-not-export-htmlchart-in-multi-page-export-scenarios.
My requirement is exporting multiple
radgrid and multiple radhtmlchart in div to pdf.
Can anyone please help me in implementing this requirement?
I have tried using itextsharp and Telerik radclientexportmanager both fail to export to pdf.
Hi, we're trying to export a page and running into problems with Chrome (68.0.3440.106) 64-bit. It attempts to download the file (PDF) and fails with a network error (see attached). I suspect it can't write to the location it's trying to download to but can't see where. Everything else in Chrome just downloads to C:\Users\user\Downloads. We've tried Incognito mode with same result. We're not experiencing the issue with IE11 or Edge. Also, we're using version 2018.2.710 of the controls.
Thanks
Daniel