473,395 Members | 1,443 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.

printing a crystal report


i have a print button to print a crystal report,
but this code is not working, it prints only the lines,and boxes of th
report
not the actual data, my code is

Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e A
System.EventArgs) Handles btnPrint.Click
crpt.PrintOptions.PrinterName = "HP LaserJet 2100 Series PS"
crpt.PrintToPrinter(1, False, 1, 1)
End Sub

can anybody tell this code is correct, if no then , any other solution

--
Mana
-----------------------------------------------------------------------
Manan's Profile: http://www.highdots.com/forums/member.php?userid=39
View this thread: http://www.highdots.com/forums/showthread.php?t=162670

Nov 19 '05 #1
1 1293
hi ..
i have this code and it's working

rpt.SetDatabaseLogon("DatabaseUSer","Password","Se rverName", "DatabaseName");

rpt.PrintToPrinter (1,false,0,0);

i wish i solved the problem for you
"Manan" wrote:

i have a print button to print a crystal report,
but this code is not working, it prints only the lines,and boxes of the
report
not the actual data, my code is

Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnPrint.Click
crpt.PrintOptions.PrinterName = "HP LaserJet 2100 Series PS"
crpt.PrintToPrinter(1, False, 1, 1)
End Sub

can anybody tell this code is correct, if no then , any other solution?
--
Manan
------------------------------------------------------------------------
Manan's Profile: http://www.highdots.com/forums/member.php?userid=393
View this thread: http://www.highdots.com/forums/showthread.php?t=1626701

Nov 19 '05 #2

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

Similar topics

1
by: DCraig | last post by:
I'm having problems printing to a line printer from both Crystal Reports and SQL Server reporting services using dotnet. When I try and print a report from an application with Crystal I get the...
1
by: Maurice Mertens | last post by:
Hello, I'm trying to print a report to the printer but somehow it doesn't take the margins I set. I want the report to have a margin of 0.7 cm (397 twips), so in code I use the following: ...
0
by: Bryan Bernstein | last post by:
I have an ASP.NET intranet application that uses crystal reports 9. I have three HP printers installed on the web server (windows server 2003). For the past 6 months I have had no problems with...
1
by: Aaron Bronow | last post by:
I have an asp.net application which loads a Crystal Reports ReportDocument, passes in parameters for selecting data from the report's database connection, renders the report for previewing on the...
1
by: darf | last post by:
Firstly, I'm VERY green on all this Crystal stuff - so please excuse my ignorance. I see on other posts that to print a report without using the viewer use: Dim crReportDocument As...
1
by: Dreamtime | last post by:
Hi I am using Visual Studio 2005 and the bundled Crystal Reports (previously I used .net 2003 and bundled Crystal Reports for 2 years - same issues!) I have a report which is displayed in the...
6
by: Siv | last post by:
Hi, I am getting into printing with VB.NET 2005 and want to implement the usual capability that a user can select a selection of pages. I have a report that is generated by my application that if...
0
by: skrishnan68 | last post by:
Hello, When printing a crystal report from my VB.NET application, it only prints a blank page. The report was created in Crystal Enterprise v10.0. Recently we upgraded our servers and changed...
0
by: John Smith | last post by:
Hello, I have 7 different crystal reports that need to be collated. Since I want to end up with a page of each (which all together make a single report), I created a blank main report and then...
0
by: sili18 | last post by:
Hi All, I have an issue in printing the Crystal Report, i am using javascript method for printing (Window. Print) Am loading the rpt file in the crystal report viewer. when the report prints...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
0
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...
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...
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...

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.