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

Export to PDF Filesize Fluctuates upon start and completed download

2 Answers 36 Views
Grid
This is a migrated thread and some comments may be shown as answers.
DTech
Top achievements
Rank 1
DTech asked on 31 Aug 2010, 07:35 PM
When we export a PDF file from RadGrid, the file size is big upon download 11.4MB (firefox, ie, safari, all says file is 11.4MB at the start), then when the file is completed, the file size is 3.4 MB.

FYI: I disabled font embedding (http://www.telerik.com/support/kb/reporting/designing-reports/the-size-of-the-exported-pdf-file-is-big.aspx)

Any ideas?

RadGrid1.ExportSettings.ExportOnlyData = False
 
RadGrid1.ExportSettings.FileName = lPDF.Text
 
RadGrid1.ExportSettings.IgnorePaging = True
RadGrid1.ExportSettings.OpenInNewWindow = True
RadGrid1.BorderStyle = BorderStyle.None
RadGrid1.MasterTableView.BorderStyle = BorderStyle.None
RadGrid1.MasterTableView.DataBind()
RadGrid1.MasterTableView.ExportToPdf()

<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False"
        DataSourceID="sqlSubmittedWks" GridLines="None" 
        OnItemDataBound="RadGrid1_ItemDataBound" >
<MasterTableView datasourceid="sqlSubmittedWks" >
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
 
<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
    <ItemTemplate>
   <asp:Label ID="Label1" runat="server" Font-Size="16pt"
                    Text='<%# Eval("QuestionName") %>'></asp:Label>
                <br />
                <br />
                <asp:Literal ID="lChartPrint" runat="server"
                    Text='<%# Replace(Wks_Helper.Statistics_AnswerStatistics_Chart(lWalkID.text, Eval("QuestionID")), "chs=440x220", "chs=600x400") %>'></asp:Literal>
                <br />
                <uc1:AnswerResults_Item ID="AnswerResults_Item1" runat="server" SchoolWalkID='<%# lwalkid.text %>'  QuestionID='<%#  Eval("QuestionID") %>'  />
                <br />
                <asp:Label ID="lQidPrint" runat="server" Text='<%# Eval("QuestionID") %>'
                    Visible="False"></asp:Label>
                <asp:Literal ID="lNewPage" runat="server" Text="<?hard-pagebreak?>"></asp:Literal>
    </ItemTemplate>
    <Columns>
        <telerik:GridTemplateColumn UniqueName="TemplateColumn">
            <ItemTemplate>
 
            </ItemTemplate>
        </telerik:GridTemplateColumn>
    </Columns>
    <CommandItemTemplate>
        
    </CommandItemTemplate>
</MasterTableView>
    </telerik:RadGrid>

2 Answers, 1 is accepted

Sort by
0
DTech
Top achievements
Rank 1
answered on 03 Sep 2010, 05:11 PM
Is anyone else getting this error?  Is this a bug in telerik's bin?
0
Daniel
Telerik team
answered on 06 Sep 2010, 10:57 AM
Hello DTech,

I tried various ways to reproduce this behavior but unfortunately to no avail. I attached some screenshots that show the results of my local tests.

If the problem still persists, please submit a runnable project (attached to a regular support ticket) and I will examine the issue on my end.

By the way, the font-embedding link is related to another product - Telerik Reporting.

Best regards,
Daniel
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
DTech
Top achievements
Rank 1
Answers by
DTech
Top achievements
Rank 1
Daniel
Telerik team
Share this question
or