Export to pdf grid with binary images

3 posts, 1 answers
  1. Felice
    Felice avatar
    198 posts
    Member since:
    Aug 2013

    Posted 18 Jun 2015 Link to this post

    I have this column in my RadGrid:

    <telerik:GridTemplateColumn DataField="Data" HeaderText="Image" UniqueName="Upload">
         <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>
     <telerik:RadAsyncUpload runat="server" ID="AsyncUpload1" OnClientFileUploaded="OnClientFileUploaded"
                                                AllowedFileExtensions="jpg,jpeg,png,gif" MaxFileSize="1048576" onvalidatingfile="RadAsyncUpload1_ValidatingFile">

    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">
                                <Csv EncloseDataWithQuotes="False" />

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

    Thanks for helping




  2. Answer
    Angel Petrov
    Angel Petrov avatar
    1137 posts

    Posted 23 Jun 2015 Link to this post

    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.

    Angel Petrov
    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
  3. Felice
    Felice avatar
    198 posts
    Member since:
    Aug 2013

    Posted 23 Jun 2015 in reply to Angel Petrov Link to this post

    Hello Angel,

    Thanks a lot. The suggested setting solved the problem.

Back to Top