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

Two reports on page problem with printer

10 Answers 154 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Yoni Dagan
Top achievements
Rank 1
Yoni Dagan asked on 19 Jun 2008, 06:44 AM
My page have two reports display:none and two buttons (a.print list and b.print scoring results)

the script:

<

script type="text/javascript">

function

PrintScoringList()

{

<%=ReportScoringList.ClientID %>.Print();

}

function

PrintScoringResults()

{

alert(

"Now,We will print Scoring Results");

<%=ReportScoringResult.ClientID %>.Print();

}

</

script>

and now about problem:
PrintScoringResults I call after programmaticaly binding results after this I call PrintScoringList but report printing ScoringResults(the anothe object)

Where I err?

Thanks ahead,Sergey!

10 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 19 Jun 2008, 08:55 AM
Hi Sergey,

I've just tested this locally but did not encounter any errors. Can you elaborate on the error/problem you've encountered? Here is the code I've used for testing:

 <script type="text/javascript"
            function PrintScoringList() 
            { 
            <%=ReportScoringList.ClientID %>.Print(); 
            } 
            function PrintScoringResults() 
            { 
            alert("Now,We will print Scoring Results"); 
            <%=ReportScoringResult.ClientID %>.Print(); 
            } 
        </script> 
 
        <asp:Button ID="Button1" runat="server" Text="ScoringList" OnClientClick="PrintScoringList(); return false;" /> 
        <asp:Button ID="Button2" runat="server" Text="ScoringResults" OnClientClick="PrintScoringResults(); return false;" /> 
        <telerik:ReportViewer ID="ReportScoringList" Style="display: none;" runat="server" 
            ShowZoomSelect="true" ZoomMode="PageWidth" Skin="Office2007"></telerik:ReportViewer> 
        <br /> 
        <telerik:ReportViewer ID="ReportScoringResult" Style="display: none;" runat="server" 
            ShowZoomSelect="true" ZoomMode="PageWidth" Skin="Office2007"></telerik:ReportViewer> 

Looking forward to your reply.




Greetings,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Yoni Dagan
Top achievements
Rank 1
answered on 19 Jun 2008, 09:40 AM
I'll elaborate on the order of operation first and then I'll explain again the results of a test I did.

The order of operation:
When I load the original page I also programatically create the list report (relates to button A). Only after selecting a line from the presented table one can operate button B which then programatically bind data to the second report and run corresponding print on client side on event on load.  

When we tested this we pressed the different print buttons and tested the printouts:
Press button A -> report A was printed properly
Press button B (after selecting line X) -> empty page was printed (header: Page 1 of 1, Footer: java script:"      6/19/2008)
Press button A -> report B (of line X) was printed
Press button B -> empty page (as above)
Press button B (select line Y) -> empty page (as above)
Press button A -> report B (of line Y) was printed.

Can you help?!
0
Steve
Telerik team
answered on 20 Jun 2008, 03:42 PM
Hello Sergey,

It would be best if you open a support ticket and attach your report there so we can investigate the problem you describe. Once we review it, we would be able to provide you with more info.

All the best,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Yoni Dagan
Top achievements
Rank 1
answered on 22 Jun 2008, 04:59 AM
Steve ,hi!
I can't attach file. all time failed
0
Steve
Telerik team
answered on 23 Jun 2008, 06:49 AM
Hello Sergey,

You would need to open a support ticket in order to be able to attach files. Open a ticket from your Client.net account and paste a link to this forum thread for reference.

Greetings,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Yoni Dagan
Top achievements
Rank 1
answered on 23 Jun 2008, 06:59 AM
Steve!
Attach all time failed . May be you have email or ftp for send you rar with project?
0
Steve
Telerik team
answered on 23 Jun 2008, 07:37 AM
Hello Sergey,

I've just tested creating a new ticket (see screenshot) from your account and attaching a file to it - it all worked properly. Can you share what is failing? How big is the file you're trying to attach? If it is more than 10 Mbs, it would be best to split into two archives. The better alternative would be to isolate the issue in as small and simple project as possible and attach it for further investigation.

All the best,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Yoni Dagan
Top achievements
Rank 1
answered on 23 Jun 2008, 09:07 AM
Hi Steve!
I succeeded open empty ticket and after this attached file with project, but status ticket is closed. Why?
p.s. support id 145719
0
Steve
Telerik team
answered on 23 Jun 2008, 09:26 AM
Hello Sergey,

Our records show that you have closed the ticket. Have you by any chance hit "Send and Close" button instead of simply "Send"? Anyway your ticket is successfully received and we would review it shortly and get back to you.

Sincerely yours,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Yoni Dagan
Top achievements
Rank 1
answered on 23 Jun 2008, 09:28 AM
Thank you very match!!!
Tags
General Discussions
Asked by
Yoni Dagan
Top achievements
Rank 1
Answers by
Steve
Telerik team
Yoni Dagan
Top achievements
Rank 1
Share this question
or