473,398 Members | 2,125 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,398 software developers and data experts.

Crystal Reports Printing without Preview and having Parameters how?

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 ReportDocument
crReportDocument = New myCrystalReport()
crReportDocument.PrintOptions.PrinterName = "\\server\myprinter"
crReportDocument.PrintToPrinter(1, True, 1, 1)

When I display the report using the Viewer I pass it some parameters,
eg. CrystalReportViewer1.ParameterFieldInfo = crParameterFields

My question is, how to I pass these parameters when printing the report
without using the viewer? Or, do I still need to use the viewer, hide
it on the form, and assign the ParameterFieldInfo to it? Whats the
normal way of doing this? I hope i make sense!

Thanks in advance,
David.

Nov 21 '05 #1
1 5415
Instead of using the viewer, you can use the ReportDocument object, and pass
parameters to that. If you'll be building more than 1 report like this, I
suggest you go to www.crystalreportsbook.com and buy the book. It's the
best money you'll spend if you have to work with Crystal, and it will answer
many of the questions you'll have as follow-ups.

"darf" <da*******@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
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 ReportDocument
crReportDocument = New myCrystalReport()
crReportDocument.PrintOptions.PrinterName = "\\server\myprinter"
crReportDocument.PrintToPrinter(1, True, 1, 1)

When I display the report using the Viewer I pass it some parameters,
eg. CrystalReportViewer1.ParameterFieldInfo = crParameterFields

My question is, how to I pass these parameters when printing the report
without using the viewer? Or, do I still need to use the viewer, hide
it on the form, and assign the ParameterFieldInfo to it? Whats the
normal way of doing this? I hope i make sense!

Thanks in advance,
David.

Nov 21 '05 #2

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

Similar topics

0
by: RiteshDotNet | last post by:
I wanted to call crsytal report without preview. Direct printing(Without Preview) by using asp.net and crystalreport please tell me is there any way ?
4
by: Wendy Elizabeth | last post by:
I would like to know how to print a crystal report that was generated in the ..NET framework using a Visual Basic.NET web application and/or a Visual basic.NET windows application. When crystal...
1
by: tklapettek | last post by:
Hello, I want to deploy Crystal Reports 10 without using merge-modules. I'm using Crystal Reports 10 developer edition. So I created a report in CR10 and call in in .Net 2003 (see example below)....
0
by: RobM | last post by:
I have a report which is composed of a summary sheet(s) an for each item on the summary sheet there is a letter and a partially filled in form The summary sheet and letter can be printed on plain...
0
by: google | last post by:
My Crystal reports are being supplied the logon credentials via a C# code class that recursively loops through all the tables present in the reports and applies the login credentials (Servername,...
0
by: pbb | last post by:
Has anyone figured out a way to print a Crystal Report in ASP.NET in code? What I would like is to have the user click a button on another page, have my ..Net program generate the report and pull...
0
by: Anne-Marie Buki via .NET 247 | last post by:
Hi, I'm having problemes printing with Crystal Reports using VB.NET.Whenever I try printing on the local printer, when I don'tspecify a PrinterName, everything works fine. However, when Ichange the...
0
by: ralphred | last post by:
Hi, I am using Crystal Reports XI R2 and my report is printing out invoices and working perfectly, but on the back of each page I need to print out some information that isn't part of the...
0
by: WaluigiCubed | last post by:
Hi All, I just have a quick question about programmatically setting the paper tray that a Crystal Report prints to using Visual Basic .NET 2005 (The Crystal Reports version is the version that is...
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: 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
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
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
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...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.