473,231 Members | 1,772 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,231 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 5750
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: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.