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

Printing Crystal Report to Postscript

Hello,

I'm using Crystal Reports for Visual Studio 2005.

I'm trying to print my reports to the postscript file:

PrinterSettings ps = new PrinterSettings();
ps.PrinterName = "HP Deskjet 3840 Series";
ps.PrintFileName = txtPath.Text.Trim() + "\\" + txtFormNo.Text.Trim() +
".ps";
ps.PrintToFile = true;
rpt.PrintOptions.CopyFrom(ps, ps.DefaultPageSettings);
rpt.PrintToPrinter(1, true, 0, 0);

Although I specified PrintToFile, this procedure still prints a hard copy,
and not a postscript file.

I've also tried to install Adobe Postscript driver and print directly to PS
printer - but getting errors that some method is not supported, I don't
know which one yet.

I'd found some posts in the forums
(http://www.crystalreportsbook.com/fo...ts.asp?TID=844) saying
that there was a bug with PS printing in Crystal reports that had been fixed
in version Crystal XI Release 2 Service Pack 3. But, first, I even don't
know what version I have, I couldn't find a way to look it up in the Visual
Studio - there is no CR version under Help. Second, I cannot update directly
from my Visual Studio (probably due to my company's proxy settings), and I
couldn't download an update from the Business Objects web site either, it
seems that only registered users of the full version can do this.

I would appreciate very much any help with this issue. Either I'm missing
something in my code, or I really need an update? If so - is there a way to
get it somehow?

Thank you,

Peter
Jul 15 '08 #1
1 5778
I managed to print to postscript printer, but I always get a prompt for file
name - exactly the same problem as described here:

http://www.crystalreportsbook.com/fo...ts.asp?TID=844

So I believe I need an update - Crystal XI Release 2 Service Pack 3. How can
I get it?

Thank you,

Peter
"Peter Afonin" <pa*****@hotmail.comwrote in message
news:u3**************@TK2MSFTNGP05.phx.gbl...
Hello,

I'm using Crystal Reports for Visual Studio 2005.

I'm trying to print my reports to the postscript file:

PrinterSettings ps = new PrinterSettings();
ps.PrinterName = "HP Deskjet 3840 Series";
ps.PrintFileName = txtPath.Text.Trim() + "\\" + txtFormNo.Text.Trim() +
".ps";
ps.PrintToFile = true;
rpt.PrintOptions.CopyFrom(ps, ps.DefaultPageSettings);
rpt.PrintToPrinter(1, true, 0, 0);

Although I specified PrintToFile, this procedure still prints a hard copy,
and not a postscript file.

I've also tried to install Adobe Postscript driver and print directly to
PS printer - but getting errors that some method is not supported, I
don't know which one yet.

I'd found some posts in the forums
(http://www.crystalreportsbook.com/fo...ts.asp?TID=844) saying
that there was a bug with PS printing in Crystal reports that had been
fixed in version Crystal XI Release 2 Service Pack 3. But, first, I even
don't know what version I have, I couldn't find a way to look it up in the
Visual Studio - there is no CR version under Help. Second, I cannot update
directly from my Visual Studio (probably due to my company's proxy
settings), and I couldn't download an update from the Business Objects web
site either, it seems that only registered users of the full version can
do this.

I would appreciate very much any help with this issue. Either I'm missing
something in my code, or I really need an update? If so - is there a way
to get it somehow?

Thank you,

Peter

Jul 15 '08 #2

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

Similar topics

4
by: Arthur | last post by:
Hi Everyone, I'm having a real hard time with this. Maybe some smarter people can assist. I'm running Mandrake 9.2. I have a Laserjet 4M Plus. I want to be able to print Postscript, bold,...
1
by: BJS | last post by:
Sorry for the cross-posting, but based on the number of people I have seen ask for a solution to this problem, I hope by cross-posting this, that it will help a lot of people out of a common...
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: ...
16
by: cyranoVR | last post by:
This is the approach I used to automate printing of Microsoft Access reports to PDF format i.e. unattended and without annoying "Save As..." dialogs, and - more importantly - without having to use...
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...
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
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: 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
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,...

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.