473,395 Members | 1,756 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 1287

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}
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.