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

export to pdf of table not showing

2 Answers 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Doug
Top achievements
Rank 1
Doug asked on 27 Oct 2016, 01:13 PM
I have gridview of a table so I can export it.
if I can export off of some other item like a panel - that may help.
anyhow my grid has html and I put a single plain text at top to test and when I export to pdf - only that text shows.
when I export to word - everything shows (properly)

is there a command I need to do to tell pdf to use html table?

2 Answers, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 01 Nov 2016, 08:28 AM
Hello Doug,

Could you please let me know what king of html you are trying to export. In case you need another table at the top you need to follow the steps in the following help article. Otherwise I would appreciate if you share more details in order to provide you with a proper solution.

I am looking forward to your reply.

Regards,
Kostadin
Telerik by Progress
Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
0
Doug
Top achievements
Rank 1
answered on 09 Dec 2016, 09:42 PM
I found a few help posts about this issue. it was I just needed some tags
<table ...
<colgroup>
<col />
</colgroup>

and also I needed to supply a width in my table <table width="800px" ...
and also in the export I added
gv.ExportSettings.Pdf.PageWidth = System.Web.UI.WebControls.Unit.Pixel(800)

these fixed my issues
Tags
Grid
Asked by
Doug
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Doug
Top achievements
Rank 1
Share this question
or