473,473 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

javascript to produce a report?

I'm thinking of giving up on the below and seeing if there is some
javascript that can either generate a report on an aspx page then
print it out formatted, etc.

First let me note that I have been trying to get a Crystal Report (a
very simple one) to display in a ReportViewer on an .aspx page that
is
a pop-up from my main .aspx page. I had run into a not-uncommonly
reported ASP.net/Crystal problem: Compiler Error Message: BC30389:
'C' is not accessible in this context because it is 'Private'. I
started out on my pop-up page having the ReportViewer and the
following:
Line 13: <form id="Form1" method="post"
runat="server">
Line 14:
Line 15: <cr:CrystalReportViewer
id=CrystalReportViewer1 style="Z-
INDEX: 101; LEFT: 0px; POSITION: absolute; TOP: 48px" runat="server"
Height="1089px" Width="901px" ReportSource="<%# c:\inetpub\wwwroot
\HR_ReportingTool\HR_ReportingToolClient_1\HRIS_Cu rrrentEmployees.rpt
%>" >
Line 16: </cr:CrystalReportViewer>
Line 17: </form>
________________________________________________
I changed it to: ReportSource="c:\inetpub\wwwroot\HR_ReportingTool
\HR_ReportingToolClient_1\HRIS_CurrrentEmployees.r pt"
Then I get a "Parser Error Message: Cannot create an object of type
'System.Object' from its string representation 'c:\inetpub\wwwroot
\HR_ReportingTool
\HR_ReportingToolClient_1\HRIS_CurrrentEmployees.r pt'
for the 'ReportSource' property."
_________________________________________
I found what I had hoped would be a solution at:
http://p2p.wrox.com/topic.asp?TOPIC_ID=14707
So I used the Server.MapPath:
ReportSource='<%# Server.MapPath("HRIS_CurrrentEmployees.rpt") %>'
I dont' get an error but I don't see my report when I run the app nor
in design view, just the tool.

Jul 29 '08 #1
2 1019
Hi,

HTML table can be used to generate a printer friendly version of
reports... in one of our project we have used this ..
we generate a simple table from our data.. with almost no style and a
simple JavaScript to print that is window.print JavaScript function...

Regards

Munna
Jul 29 '08 #2
Hi

please check out this article written by feru...
An article on creating print preview page dynamically by javascript
code. You do not need to make any aspx page to view print preview and
you can also print any portion of the print page

http://www.codeproject.com/KB/aspnet/PrintPreview.aspx
best of luck

Regards

Munna
Jul 29 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Phil Powell | last post by:
Has anyone here ever done a case where you have a select multiple form element and you have to do both server-side and client-side validation? I am honestly not sure how to do it in Javascript (I...
14
by: Terry A. Haimann | last post by:
I have been working on creating a dynamic web page and have made slow but steady progress. What I have now has an opening page with two drop down boxes. Based on a choice from the first box, the...
6
by: Andy Fish | last post by:
Hi, I want to use an anchor tag to invoke some javascript and I've read that it's bad form to use <a href="javascript:foo()"> I've read endless usenet posts and hint sites on the net, they all...
53
by: Cardman | last post by:
Greetings, I am trying to solve a problem that has been inflicting my self created Order Forms for a long time, where the problem is that as I cannot reproduce this error myself, then it is...
14
by: Tom.PesterDELETETHISSS | last post by:
Hi, I think this question requires an in depth understanding of how a browser cache works. I hope I can reach an expert here. I may have found a quirk in the asp.net documentation or I don't...
16
by: Phlip | last post by:
Javascripters: I have a page with an iframe inside. Let's say the iframe looks like this: <script src="/javascripts/prototype.js" type="text/javascript" /> .... <iframe id='grinder'...
3
by: Birky | last post by:
I’m looking for suggestions to see if it is possible to produce information in a read only format for my users. I have an event log within an Access table which tracks all the installations within...
29
by: töff 93722 | last post by:
Long story short, I built a website based primarily on JavaScript: http://www.sjcga.com The site renders *great* in WinIE6/7 and in Mac/Win Opera9. It has problems in Mac/Win Firefox2, and...
22
by: Dan Rumney | last post by:
Hi all, I've been writing Javascript for quite a while now and have, of late, been writing quite a lot of AJAX and AJAX-related code. In the main, my dynamically generated pages are created...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.