473,782 Members | 2,419 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Crystal Reports "Push" mode

Dear NG,

I have done all I can do with Crystal Reports (CR) using the "pull" mode. I
now need to generate data in my application, load a DataSet with that data,
and "push" this on to a CR report. In the code listed below, you find a
demo DataSet, called MyDataSet, taken from the Bischof book. It runs from a
button created in Visual Studio (VS) in a project called Test3. So far it
works.

The next step is to create a .rpt file in the VS project with the layout of
the report. The Report "Expert" wants a data source. I would like to
explain to the Expert that I will supply a DataSet (MyDataSet) in my C#
program. I still want to use the Expert to format a column style report.
How do I bind the columns in the detail line of the report to the columns in
the DataSet?

Thank you,

Bob
--
Robert Schuldenfrei
S. I. Inc.
32 Ridley Road
Dedham, MA 02026
bo*@s-i-inc.com
781/329-4828
//Note: Bischof does NOT use camel notation

DataSet MyDataSet = new DataSet();

string[,] Customers = new string[,]{{"123","Jones" },{"456","Smith "}};

DataTable MyDataTable = new DataTable("Tabl eName");

DataColumn MyDataColumn;

DataRow MyDataRow;

MyDataColumn = new DataColumn(); //Column 0 w/two properties

MyDataColumn.Da taType = System.Type.Get Type("System.St ring"); //property 1

MyDataColumn.Co lumnName = "CustomerId "; //property 2

MyDataTable.Col umns.Add(MyData Column); //Load column

MyDataColumn = new DataColumn(); //Column 1 w/two properties

MyDataColumn.Da taType = System.Type.Get Type("System.St ring"); //property 1

MyDataColumn.Co lumnName = "LastName"; //property 2

MyDataTable.Col umns.Add(MyData Column); //Load column

MyDataSet.Table s.Add(MyDataTab le);

int i;

for (i=0; i<=1; i++)

{

MyDataRow = MyDataTable.New Row();

MyDataRow["CustomerId "] = Customers[i,0];

MyDataRow["LastName"] = Customers[i,1];

MyDataTable.Row s.Add(MyDataRow );

}

MessageBox.Show ("Table loaded " +
MyDataSet.Table s["TableName"].Rows[1]["LastName"].ToString());

}
Nov 16 '05 #1
6 2567
Hi Robert,

I'm sorry, but currently, crystal report is not supported by Microsoft. We
can wait to see if some community member can share some light on it. Or you
can check the following link for more support information on CR.

http://support.microsoft.com/default...b;en-us;317789

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 16 '05 #2
Hi Kevin,

As usual, I appreciate the interest you have taken in my issues. I
particularly note your kindness in answering questions about Crystal Reports
(CR) in spite of the fact that it is unsupported by Microsoft. I would love
to find a newsgroup (NG) that focused in on the issues revolving around SQL
Server, C#, and CR. This would be "classic" data processing in the modern
era. I have tried to use Microsoft Reporting Services (RS), but I can not
see how to do "push" programming without ending up with .pdf file. I really
like RS and it meets the needs of report distribution in a large firm. It
is a touch cumbersome for a small company, say a pillow manufacturer with 25
employees where the CFO is the IT department!

I actually made some progress with CR yesterday. I "pushed" data out of a
C# program on to an XML temporary file and then used the implied dataset
from XML to populate a CR report. That will work, but I fear it is grossly
inefficient. This week is shot for me, but when I pick up this task again
next week, I will code some finished reports using this technique. I will
keep reporting my progress in this NG as others my benefit from my
education.

Thanks,

Bob
--
Robert Schuldenfrei
S. I. Inc.
32 Ridley Road
Dedham, MA 02026
bo*@s-i-inc.com
781/329-4828

"Kevin Yu [MSFT]" <v-****@online.mic rosoft.com> wrote in message
news:54******** *****@cpmsftngx a10.phx.gbl...
Hi Robert,

I'm sorry, but currently, crystal report is not supported by Microsoft. We
can wait to see if some community member can share some light on it. Or
you
can check the following link for more support information on CR.

http://support.microsoft.com/default...b;en-us;317789

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 16 '05 #3
Hi Robert,

"Robert Schuldenfrei" <bo*@s-i-inc.com> wrote in message
news:9PfAd.2948 42$HA.192243@at tbi_s01...
Dear NG,

I have done all I can do with Crystal Reports (CR) using the "pull" mode. I now need to generate data in my application, load a DataSet with that data, and "push" this on to a CR report. In the code listed below, you find a
demo DataSet, called MyDataSet, taken from the Bischof book. It runs from a button created in Visual Studio (VS) in a project called Test3. So far it
works.

The next step is to create a .rpt file in the VS project with the layout of the report. The Report "Expert" wants a data source. I would like to
explain to the Expert that I will supply a DataSet (MyDataSet) in my C#
program. I still want to use the Expert to format a column style report.
How do I bind the columns in the detail line of the report to the columns in the DataSet?


There is a walkthrough in the MSDN docs:

http://tinyurl.com/5dfgg

Note: The walkthrough tells you to create tables in your DataSet by dragging
them from the "Server Explorer" window. If you don't have existing table(s)
with the schema you want for the DataSet, you can add tables/fields to the
DataSet "manually" in the DataSet designer (this may make more sense after
reading the docs).

Regards,
Daniel
Nov 16 '05 #4
Hi Bob,

Here I found a corresponding forum in crystal report for you. HTH.

http://support.businessobjects.com/forums/default.asp

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 16 '05 #5
Hi Kevin,

That looks perfect for me. The only trouble is I can not find it under the
NGs listed in Outlook Express for Comcast. I can get it as a link under
Internet Explorer. If you know of a way to find it as a NG, please let me
know. In the mean time, I am busy writing code using XML to push my report
on to CR. It is effective but inefficient.

Thanks for your help,

Bob
--
Robert Schuldenfrei
S. I. Inc.
32 Ridley Road
Dedham, MA 02026
bo*@s-i-inc.com
781/329-4828
"Kevin Yu [MSFT]" <v-****@online.mic rosoft.com> wrote in message
news:Zu******** ******@cpmsftng xa10.phx.gbl...
Hi Bob,

Here I found a corresponding forum in crystal report for you. HTH.

http://support.businessobjects.com/forums/default.asp

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 16 '05 #6
Hi Bob,

It seems that this forum doesn't support NNTP, which cannot be read under
Outlook Express. I'm afraid you have to read it on you IE.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 16 '05 #7

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

Similar topics

1
2506
by: bucher | last post by:
Hi, I want to push a const auto_ptr into a vector, but the compile reports errors. Below is the code. class Folder; class Result; class Results { public: int size(){return _Items.size();}
0
2438
by: Oxmard | last post by:
This is on 9iAS R1 patch15: We are calling all out reports from forms. We already have a number of forms that call reports that are using the reports servlet. All the reports come out in pdf format. Basical there are a number of set_report_object_property calls then a run_report_object call. Additionally in the env file set by forms_web_cfg file we have a var of FORMS60_REPFORMAT=pdf
2
4966
by: Mark Olbert | last post by:
I'm looking for leads on a webpage component that would let me build a navigation bar type vertical menu where a mouseover event of a menu item would cause a submenu to appear below the item. The kicker is I'd like it to push the other menu items "down the page". I've seen this on a number of sites, but I can't seem to figure out what it's called (at least, I haven't stumbled across the right words for google/deja searches yet). Can...
2
1253
by: airkart | last post by:
Hello, I've scoured groups and the web, and haven't found a question like mine answered. I'm using Visual Studio 2003 with the Crystal Reports it comes bundled with and SQL Server 2000. Throughout the project I'm working on, I often find I need a temporary table displayed in a report, something that I cannot seem to do. Since temporary tables are so useful, I cannot imagine Crystal Reports wouldn't have a way to get such
4
5098
by: Rob Freundlich | last post by:
I have some servlet-generated tabular data that I need to present, so I'm using an HTML Table. In some cases, it can be quite large. I'm flushing the servlet output every N lines to push the data to the browser as it generates, and I've used "table-layout: fixed" for the table's CSS class. It works pretty well in Netscape (7.1 and higher) - the table is drawn pretty much as the rows are received by the browser. However, Internet...
3
2784
by: Oscar Thornell | last post by:
Hi, I am looking for a technique where you from the serverside push/update a standard web browser with small piceces of data. An exempel could be sports result or stock exchange information. I do not want to use Java Applets, ActiveX controls or force the clients to download .NET Assemblies (and install the .NET Runtime...) If at all possible I do not want to use some sort of Javascript loop where a
0
1315
by: Lisa | last post by:
I am trying to create a Crystal Report for my ASP.NET application that will allow the user to select a specific group of client addresses to create mailing labels. Since this is an ASP.NET application, I would prefer not to include my connection information within the application itself and therefore planned to use the "Push" Method. If I try to use the wizard to create the labels and then use the following code in my aspx page I get...
2
10888
by: Gustavo De la Espriella | last post by:
Hi, I know this is not a Crystal Reports group, but news.cogniza.com recieves like one question per week. Does anyone know how to push fields following a textbox when it grows with the "Can Grow" property set? I have, for example, two fields, and I want the second one to start when the first one ends so they don't overlap. Please help,
6
1504
by: Demitrius >I | last post by:
Hi, I need a way to "push" a web page to a viewer (or viewers) on my web site. What I'm trying to do is conduct an online presentation, so I need to control what the viewers see and when they see it. Is there a way to do this with ASP? Regards, Demitrius
0
9643
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10313
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9946
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5378
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4044
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 we have to send another system
2
3643
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.