473,461 Members | 1,681 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

CrystalDecisions.CrystalReports.Engine.ReportDocum ent only generating one page

I am creating a datable applying it to the reportdocument but when i export
it there is only one page?

can someone advise as to what i am missing.

my code is as follows:

Dim CrystalDS As New DataTable

CrystalDS.Columns.Add("DEBTOR", System.Type.GetType("System.String"))

CrystalDS.Columns.Add("DEBTORSURNAME", System.Type.GetType("System.String"))

CrystalDS.Columns.Add("ADDRESS1", System.Type.GetType("System.String"))

CrystalDS.Columns.Add("ADDRESS2", System.Type.GetType("System.String"))

CrystalDS.Columns.Add("ADDRESS3", System.Type.GetType("System.String"))

CrystalDS.Columns.Add("CITY", System.Type.GetType("System.String"))

CrystalDS.Columns.Add("COUNTY", System.Type.GetType("System.String"))

CrystalDS.Columns.Add("POSTCODE", System.Type.GetType("System.String"))

CrystalDS.Columns.Add("TELEPHONE", System.Type.GetType("System.String"))

Dim AddRow(8) As String

AddRow(0) = "MR":AddRow(1) = "BUTLER":AddRow(2) = "4 MILLMEAD":AddRow(3) =
"":AddRow(4) = "":AddRow(5) = "BYFLEET":AddRow(6) = "SURREY":AddRow(7) =
"KT14 7DA":AddRow(8) = "07949938386"

CrystalDS.Rows.Add(AddRow)

AddRow(0) = "MRS":AddRow(1) = "SMART":AddRow(2) = "4 MILLMEAD":AddRow(3) =
"":AddRow(4) = "":AddRow(5) = "BYFLEET":AddRow(6) = "SURREY":AddRow(7) =
"KT14 7DA":AddRow(8) = "01483825765"

CrystalDS.Rows.Add(AddRow)

Dim reportDocument1 As New
CrystalDecisions.CrystalReports.Engine.ReportDocum ent

With reportDocument1

..Load("C:\OfferArrears.rpt",
CrystalDecisions.Shared.OpenReportMethod.OpenRepor tByDefault)

..SetDataSource(CrystalDS)

..Refresh()

..ExportToDisk(CrystalDecisions.Shared.ExportForma tType.PortableDocFormat,
"C:\EXPORT.PDF")

..Close()

End With
Mar 29 '07 #1
0 1288

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

Similar topics

0
by: Stijn Lambert | last post by:
Hi all, I am having some problems with Crystal Reports 9 for Visual Studio .NET ... I have a multithreaded application that prints reports in several threads (based upon incoming requests on a...
4
by: anannj | last post by:
Hi everyone, I have a Crystal Report with a subreport in a windows application, which is to be exported to the pdf file. I followed the instructions on...
3
by: Nancy. | last post by:
It seems that I can not be able to display a crystal report with the crystal viewer in a web application. However, in Windows Application I do not have this kind of problems. In a Web form, I...
0
by: Alixx Skevington | last post by:
OK, I am confused here, so I hope that somebody out there can help me out. I am trying to run a report allows me to choose the report and then change the logon info for it. Noiw before you say...
3
by: Lorenc | last post by:
Is anybody experiencing the following error when trying to export a crystal report to a pdf? This error happens randomly. ------------------------------------------------------------------------...
0
by: Ethorsen | last post by:
Hello, is there a way to use a crystal report version 10 with the modules that comes with framework v1.1 When i try to open the crystal, it always tell me: .F(String  ,...
1
by: Learner | last post by:
Hi Friends, I am building the dataset programmatically by calling the stored proc by passing a parameter and i am getting the data into the dataset. As a test when i bind this dataset to a...
0
by: Dipen | last post by:
Hello All, I am using crystal report in my application. Everything is right but i end up with the following error. Failed to open a rowset. Description: An unhandled exception occurred during...
0
by: moondog | last post by:
I'm getting this error message. Here is my code: Private oRpt As ReportDocument oRpt = New ReportDocument oRpt.Load(m_sFileName) If oRpt.Subreports.Count 0 Then {stuff}
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
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,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.