473,322 Members | 1,268 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,322 software developers and data experts.

crystal report print-to-printer

6
Hello!
I would like to print a crystal report by using command line
Expand|Select|Wrap|Line Numbers
  1. mydoc1.PrintToPrinter(1, False, 1, 2)
..but every time the program come to this line, starts doing I don't know what and nothing happens for a long time.
I set up PrinterOptions.PrinterName to match my printer.
The same happens if I click the printer icon in printpreview screen, but if I click printer icon under Main Report Preview (when program is stopped) it works OK.
I would be grateful for any suggestions.
Jernej
Apr 22 '08 #1
2 3200
Hello!
I would like to print a crystal report by using command line
Expand|Select|Wrap|Line Numbers
  1. mydoc1.PrintToPrinter(1, False, 1, 2)
..but every time the program come to this line, starts doing I don't know what and nothing happens for a long time.
I set up PrinterOptions.PrinterName to match my printer.
The same happens if I click the printer icon in printpreview screen, but if I click printer icon under Main Report Preview (when program is stopped) it works OK.
I would be grateful for any suggestions.
Jernej
hi there..wut language r u using..?
hv u tried checking ur report destination..whether it's window(0), printer(1) ...etc
Apr 28 '08 #2
Hello!
I would like to print a crystal report by using command line
Expand|Select|Wrap|Line Numbers
  1. mydoc1.PrintToPrinter(1, False, 1, 2)
..but every time the program come to this line, starts doing I don't know what and nothing happens for a long time.
I set up PrinterOptions.PrinterName to match my printer.
The same happens if I click the printer icon in printpreview screen, but if I click printer icon under Main Report Preview (when program is stopped) it works OK.
I would be grateful for any suggestions.
Jernej
Hi there!

If you are using VB, u may wanna add the following to let your program know that it has finished printing or sending the document

Expand|Select|Wrap|Line Numbers
  1. mydoc1.PrintToPrinter(1, False, 1, 2)
  2. Printer.EndDoc
  3. Printer.NewPage
  4.  
Apr 29 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: OzSoft | last post by:
I am receiving the following exception randomly when printing crystal reports via a print server application. The server will successfully print a random number of an identical reports...
0
by: Rajani | last post by:
Hello, I am generating a report in crystal report. Everything is fine. But its displaying time(12:00:00 AM) overlapping on the last field data. So last field is not visible correctly. I didnt...
1
by: Marty | last post by:
How do you print preview a crystal report in C#.NET? Thanks.
1
by: Walid Salah | last post by:
Hi ALL, I need a help in Crystal Report?! When I'm using Crystal Report Command Based Report that include Graphs and Grouping and then change the report command using...
1
by: hammad | last post by:
I've installed VS 2005 beta2 and i didn't find the crystal report template in the add new item window is the crystal report is still a part of VS2005?? if it's still a part why i didn't find the...
0
by: Bill Nguyen | last post by:
I have a report that would gray out the print icon when preview (in a .NET VB app). This report uses an SQLserver stored procedure. Other reports using view or tables do not have this problem. I...
0
by: Ben | last post by:
Hi, I am having an odd problem with ASP.NET and Cystral Reports 9. When I run the report Crystal displays no records. While previewing the report with no records, I click Print and the records...
3
theBond
by: theBond | last post by:
When i am printing report through crystal report then it skip some on the pages in between. i.e. if i print 10 pages then it print page1 and page2 then it skip page3 and print page4 and again same...
5
by: Neetu | last post by:
Hi Everybody, Our reports works well on every machine but not on 64bit systems. We can view the report but when we press print button it does nothing, it just stay there and prompt nothing, even...
3
by: RajeshNamal | last post by:
Developing asp.net/C# web site, When I testing in my PC Crystal report Direct printing .but when i was Host in my web server it doesn't work. when i preview in crystal report viewer and Print...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.