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

Export to pdf grid with binary images

2 Answers 103 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Felice
Top achievements
Rank 1
Felice asked on 18 Jun 2015, 07:37 AM

I have this column in my RadGrid:

<telerik:GridTemplateColumn DataField="Data" HeaderText="Image" UniqueName="Upload">
   <ItemTemplate>
     <telerik:RadBinaryImage runat="server" ID="RadBinaryImage1" DataValue='<%#Eval("Data") %>'
                                            AutoAdjustImageControlSize="false" Height="126px" Width="180px" ToolTip='<%#Eval("Name", "Photo of {0}") %>'
                                            AlternateText='<%#Eval("Name", "Photo of {0}") %>'></telerik:RadBinaryImage>
      </ItemTemplate>
  <EditItemTemplate>
 <telerik:RadAsyncUpload runat="server" ID="AsyncUpload1" OnClientFileUploaded="OnClientFileUploaded"
                                            AllowedFileExtensions="jpg,jpeg,png,gif" MaxFileSize="1048576" onvalidatingfile="RadAsyncUpload1_ValidatingFile">
  </telerik:RadAsyncUpload>
 </EditItemTemplate>
</telerik:GridTemplateColumn>

and I am battling to export the content of the grid to pdf since the result I get does not show the pictures.

These are my export settings:

 <ExportSettings ExportOnlyData="True" FileName="InventoryWilton" IgnorePaging="True">
                            <Pdf PageWidth="21cm" PageHeight="19cm" PaperSize="A4">
                            </Pdf>
                            <Csv EncloseDataWithQuotes="False" />
                        </ExportSettings>
 

How can I export the grid to pdf including the binary images?

Thanks for helping

 

 

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Angel Petrov
Telerik team
answered on 23 Jun 2015, 06:02 AM
Hello Felice,

The problem is most probably caused by the fact that the ExportOnlyData property is set to true. Please set it to false and test the page again.

Regards,
Angel Petrov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Felice
Top achievements
Rank 1
answered on 23 Jun 2015, 07:31 AM

Hello Angel,

Thanks a lot. The suggested setting solved the problem.

Tags
Grid
Asked by
Felice
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Felice
Top achievements
Rank 1
Share this question
or