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

[Solved] radGrid's .ExportToPdf() fails after uninstalling IE10 (back to IE9); was working before that

11 Answers 103 Views
Grid
This is a migrated thread and some comments may be shown as answers.
S. C.Sharp
Top achievements
Rank 1
S. C.Sharp asked on 09 Apr 2013, 12:23 AM
We have a user that uninstall the automatic updated IE10, which went back to the IE9 (the company's standard), but now the button Click action that leads to the radGrid's .ExportToPdf() method does nothing (it seemds to process for a few second but no error message nor a PDF poping up like before the IE debacle:).  Other (non .exportToPdf() based) PDF links work in the resurrected IE9 browser (our app does not work in other browser so can't test that way).

Any ideas on what setting might have gotten nuked (IOWs: what settings are needed) or does anything need to get reinstalled?

The apsx has:

<asp:Button ID="uxPrint" runat="server" ToolTip="Save/Print form" onclick="uxPrint_Click" UseSubmitBehavior="false"/>

There is no javascript on this button (other than what goes on with telerik's AJAX system);
 
The codebehind Starts with:

protected void uxPrint_Click(object sender, EventArgs e) { 
  RadGrid rgMain = Page.FindControl("rgMain") as RadGrid;

    rgMain.ExportSettings.OpenInNewWindow = true;

    rgMain.ExportSettings.Pdf.Title = uxEmployeeNameField.Text + " - " + uxCategoryField.Text; //...

    rgMain.ExportSettings.Pdf.PageTitle = rgMain.ExportSettings.Pdf.Title;

    rgMain.ExportSettings.Pdf.PageLeftMargin = Unit.Parse("10mm");

 . . .

 

//and finishes with:

    rgMain.MasterTableView.ExportToPdf();

}

AGAIN, it worked before the IE 10 upgrade then unistall back to IE9 which worked.
THANKS

11 Answers, 1 is accepted

Sort by
0
S. C.Sharp
Top achievements
Rank 1
answered on 10 Apr 2013, 05:50 PM
AND..
 ...I heard our customer unistalled (the now broken) IE9 which went back to IE8 and .ExportToPdf() WORKED (the button click etc); the PDF report displayed!  -- Nothing else changed except for the IE9 uninstall.
 
With that working, our customer reinstalled IE9 but this PDF function failed again (no errors, just a few seconds of processing then nothing else)!

The customer also did their best effort to match IE9 Internet settings from a machine that never went thru the IE10 auto-install then uninstall and this machines IE9 still fails to do anything when clicking the button to run the radgrid .ExportToPdf.  All those other users on IE9 have had no problems (as is this user up to the IE10 installation then the uninstall)

THANKS for your ideas !!!
0
Daniel
Telerik team
answered on 11 Apr 2013, 05:42 PM
Hello Scott,

I'm not sure that I fully understand the problem but if nothing happens when you click the export button (no errors, no postback) then I think I'm at a loss what might cause this. Normally such behavior occurs when one is trying to export the control via ajaxified button.
Could you please provide some more specific information about the problem and also if possible share the whole related code with us?

Kind regards,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.

0
Elliott
Top achievements
Rank 2
answered on 11 Apr 2013, 06:20 PM
could the enhanced security of IE9 be the "problem"?
I was finding some things just didn't work in IE9 - unless the user's Window account was administrator to her own machine
0
S. C.Sharp
Top achievements
Rank 1
answered on 11 Apr 2013, 07:11 PM
I reworded my original two post for some additinal clarity.  But I'm hoping someone know a missing setting or IE-Add-On, etc that will restore what use to work on IE9 butfails now with the IE upgrade debacle:)

This problem is just on one user's IE; all other users did not get the IE10 upgrade; the server does not appear to have changed (it is an intranet app on server 2003 and that server is still on IE8 ...).

The app is large - too much to post. I could setup a WebEx as that is what I used to explore the user's machine.  we also have less logging and reporting that we should have but then the code hasn't changed; jsut the IE uninstalls on a working machine.


I'll check on Marianne Seggerman's suggestion of the user's account being an Admin; but then again-- it use to work and the only difference is the IE unistall some defualt IE9 settings are not correct.

THANKS AGAIN
 S.C.Sharp
0
Daniel
Telerik team
answered on 16 Apr 2013, 07:14 PM
Hello Scott,

I would recommend that you ask your IT staff for assistance. Maybe they will be able to restore the computer state to a previous point via System Restore or something like that.
This is the only option that sounds reasonable to me at this point.

Kind regards,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
S. C.Sharp
Top achievements
Rank 1
answered on 16 Apr 2013, 08:00 PM
They do not have resotre options - this is simple something need to be set for RadGrid's .ExporttoPdf() to work - Is there anything specific to IE9?

AGAIN - it use to work on this machine with IE9; IE 10 installation then backing that out broke whatever is required by RadGrid's .ExporttoPdf().
0
Daniel
Telerik team
answered on 19 Apr 2013, 06:43 AM
Hello Scott,

I have created a simple website for you (attached to this post). Just add the DLL files to the Bin folder and then open it as a regular website. Let me know whether it works as expected on your end.

Regards,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
gc_0620
Top achievements
Rank 1
answered on 19 Apr 2013, 02:17 PM
Hi

1) See adobe is not disabled. IE->Tools->Manage-addins.
2) If enabled & still can't export to PDF, then reset the toolbars/restore advanced seetings. IE->Tools->Internet Options->Advanced.

Other solution's will be:

1) At the webpage level

<head>
  <!-- Mimic Internet Explorer 9 -->
  <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" >
  <title>My webpage</title>
</head>


2) At the folder level by adding the followings in Web.config file

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
    <httpProtocol>
      <customHeaders>
        <clear />
        <add name="X-UA-Compatible" value="IE=EmulateIE9" />
      </customHeaders>
    </httpProtocol>
  </system.webServer>
</configuration>

Best,

gc_0620

0
Daniel
Telerik team
answered on 23 Apr 2013, 11:55 AM
Hello Scott,

Have you managed to run the website on your end? If the problem is still there, you can try the options suggested by gc_0620. Otherwise, please share the result with the community.

Regards,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
S. C.Sharp
Top achievements
Rank 1
answered on 23 Apr 2013, 07:00 PM
I'm still trying to work with the exact customer with this problem - sorry for the delay (might be a week or more delay :( )
0
Daniel
Telerik team
answered on 26 Apr 2013, 08:54 AM
Hello Scott,

Take your time. Let us know when you have tried these suggestions (plus the project).

Best regards,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
S. C.Sharp
Top achievements
Rank 1
Answers by
S. C.Sharp
Top achievements
Rank 1
Daniel
Telerik team
Elliott
Top achievements
Rank 2
gc_0620
Top achievements
Rank 1
Share this question
or