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

exported pdf file is password protected

8 Answers 237 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Shunei Chou
Top achievements
Rank 1
Shunei Chou asked on 12 Mar 2010, 05:14 AM
when I try to open the exported pdf file, it prompts me to type in the password.

I don't think I have set the password anywhere. 
Should it be local setting problems?

8 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 15 Mar 2010, 10:46 AM
Hello Shunei,

I'm not sure what might cause such problem. Could you please provide some more information and instructions as to how to reproduce the issue? I would appreciate it, if you could attach a demo or a code sample.

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.
0
Yoshi
Top achievements
Rank 1
answered on 01 Apr 2010, 08:22 PM
Hi, have you solved this problem? I have the same situation. When I click the pdf icon and open the file, it asks me to enter the password. I'm using VS2010 RC, and both IE8 and Firefox 3.5.8 gives me the same situation. My code is this (in a masterpage):

    <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
        <script type="text/javascript">
            function onRequestStart(sender, args) {
                if (args.get_eventTarget().indexOf("ExportToExcelButton") >= 0 ||
                    args.get_eventTarget().indexOf("ExportToWordButton") >= 0 ||
                    args.get_eventTarget().indexOf("ExportToPdfButton") >= 0 ||
                    args.get_eventTarget().indexOf("ExportToCsvButton") >= 0) {

                    args.set_enableAjax(false);
                }
            }
        </script>
    </telerik:RadScriptBlock>
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <ClientEvents OnRequestStart="onRequestStart" />
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <updatedcontrols>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                </updatedcontrols>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" />
    <telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True"
        AllowSorting="True" DataSourceID="lds_vSubscribers" GridLines="None" ShowGroupPanel="True"
        AutoGenerateColumns="False" PageSize="100">
        <ClientSettings AllowDragToGroup="True">
            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
        </ClientSettings>
        <ExportSettings ExportOnlyData="true" FileName="ExportedRadGrid" OpenInNewWindow="True"
            IgnorePaging="True" Pdf-FontType="Embed" />
        <MasterTableView DataSourceID="lds_vSubscribers" CommandItemDisplay="Top">
            <CommandItemSettings ShowExportToCsvButton="true" ShowExportToExcelButton="true"
                ShowExportToPdfButton="true" ShowExportToWordButton="true" />
            <RowIndicatorColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridBoundColumn DataField="SubscriberId" DataType="System.Int32" HeaderText="Subscriber Id"
                    SortExpression="SubscriberId" UniqueName="SubscriberId">
                </telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
        <PagerStyle Position="TopAndBottom" />
        <HeaderContextMenu EnableAutoScroll="True">
        </HeaderContextMenu>
    </telerik:RadGrid>
    <asp:LinqDataSource ID="lds_vSubscribers" runat="server" ContextTypeName="DAL.JijiMobileNewsUSADataClassesDataContext"
        EntityTypeName="" OrderBy="RegisteredDate desc" TableName="vSubscribers">
    </asp:LinqDataSource>

I appreciate it if you could me how to solve the problem.

0
Daniel
Telerik team
answered on 01 Apr 2010, 08:37 PM
Hello Yoshi,

I created a sample project that looks exactly as yours. Please test it on your end and let me know whether it exhibits the same problem.

In the meantime I recommend you disable the scrolling/static headers functionality when exporting to PDF (as mentioned in the documentation)
PDF export help topic

Let me know what your findings are.

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.
0
Yoshi
Top achievements
Rank 1
answered on 01 Apr 2010, 09:45 PM
Hi Daniel,

Thank you very much for your quick response. I tried your files, but the same results.

(I wanted to attach a zip file that contains the files I tried as well as the pdf file, but this forum doesn't let me do it...)

By the way, after I exported the same data as an Excel file, I get a warning message saying "The file you are trying to open is in a different format than specified by the file extension." when I try to open it. I just want to let you know if this is related to the pdf issue.
0
Daniel
Telerik team
answered on 01 Apr 2010, 11:10 PM
Hello Yoshi,

The warning message is not related to the PDF problem. You can find more information about it in the following blog posts:
MSDN blogs: Excel 2007 Extension Warning On Opening Excel Workbook from a Web Site

Grinn blog: "The file you are trying to open, '[filename]', is in a different format"


You can attach the desired files to a formal support ticket. Login into your Telerik account and click on Submit new support ticket link. Please provide a valid reference to this forum post (URL) - this way I will be able to track your ticket faster.

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.
0
Yoshi
Top achievements
Rank 1
answered on 01 Apr 2010, 11:46 PM
Daniel, I just created a ticket (296447) with the zip file. Please let me know what I should do next.

Thank you!
0
Daniel
Telerik team
answered on 08 Apr 2010, 10:05 AM
Hello Yoshi,

I reproduced the problem locally - thank you for your assistance. I will post an update in this thread as soon as I have more info about the problem.

Please excuse us for the inconvenience.

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.
0
Daniel
Telerik team
answered on 15 Apr 2010, 09:55 PM
Hello guys,

This problem is already addressed in the latest release - RadControls for ASP.NET AJAX Q1 2010 SP1.

Release history - RadControls for ASP.NET AJAX Q1 2010 SP1

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
Shunei Chou
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Yoshi
Top achievements
Rank 1
Share this question
or