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

Problem implementing the printing functionnality

5 Answers 44 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ludovic Gerbault
Top achievements
Rank 1
Ludovic Gerbault asked on 24 Sep 2009, 05:42 PM
Hi

I tried to use your example to provide a printing support on my grid.

Basically, I only copied the printhandler as is, and the code snippet that I attached to a contextmenu in the rowloaded event.

Code seems to work fine, but when I run it, the server returns a not found error concerning the file Output.html

So I checked in your exemple ifthere was one, I didn't find any. I created an empty text file with an html extension anyway, but it only displays a popup with a blank page, nothing there to print.

Am I missing something ?

Ludovic

5 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 25 Sep 2009, 05:51 AM
Hi Ludovic,

Most probably ASP.NET account does not have enough rights to write file - can you check this?

Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Ludovic Gerbault
Top achievements
Rank 1
answered on 25 Sep 2009, 08:38 AM
Well, I gave the IIS_USRS account a full control access rights, but it doesn't seems to fix the problem at all. (I'm on Vista 64 with IIS 7)

I still got the same 404 message.

I must admit that I'm not that familiar with IIS configuration thought, so I wouldn't be surprised if i'd miss something.

The only thing I changed between your example and my code is the namespace and the name of the grid.

I have no clue why it would'nt work.
0
Ludovic Gerbault
Top achievements
Rank 1
answered on 03 Dec 2009, 02:06 PM
Hello

I'm back on a similar issue.

I manage to have my grid printing fine in the Q2.
Then I updated my application to the Q3 (build 1127), and tried implementing the printToHtml function.

But when the code reaches this method, I see that the Exporting method is being called as well, but nothing prints at all.

And I have the same behaviour with your demo.

Is there some bug with the printToHtml method  ?
0
Ludovic Gerbault
Top achievements
Rank 1
answered on 03 Dec 2009, 02:17 PM
Correction : The PrintToHtml doesn't work on Firefox 3.6b4.
0
Vlad
Telerik team
answered on 08 Dec 2009, 11:55 AM
Hi Ludovic,

 Unfortunately you are right! We are aware of this problem however didn't found stable solution so far - we will do our best to fix this as soon as possible.

Regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Ludovic Gerbault
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Ludovic Gerbault
Top achievements
Rank 1
Share this question
or