Print crystal report to a specific printer tray
Greetings -
I need to print out a report to a specific printer tray, can you please let me know how I set it up?
Thanks,
Lava
Hi Lava,
According to what I can understand you would like to print the Crystal Report to a specific printer.
In order to print the crystal report to a particular tray of a printer you need to set the printer from the Crystal Reports application.
This can be done from u201CFileu201Dmenu->Print. Select the printer if it is already added else you can add anew printer.
I hope this helps you.
Regards,
Prashant.
Similar Messages
-
Print a report to a specific printer from Forms
I have a form from where i want to print a report to a specific printer (not the default printer). Is there any way to do this from Forms 9i. Im using the Orarrp but it pops up the printer dialog and shows the default printer. Is there any way to harcod the printer name. the printer is on the network..
If i go to my control pannel and see the list of printers i take the printer name from there. should i put the path of the printer? i kno the port of the printer .it come like ip_192.1.11.1_p1 ..how do i define the printer name? if i dnt give the printer name shouldnt if fire to the default printer ..my code is as follows
declare
REPID REPORT_OBJECT;
V_REP VARCHAR2(100);
REP_STATUS VARCHAR2(20);
BEGIN
REPID := FIND_REPORT_OBJECT('CUS_PRINT');
SET_REPORT_OBJECT_PROPERTY(REPID,REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY(REPID,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(REPID,REPORT_DESTYPE,PRINTER);
SET_REPORT_OBJECT_PROPERTY(REPID,REPORT_SERVER,'test');
SET_REPORT_OBJECT_PROPERTY(REPID,REPORT_OTHER,'P_CUSREF='||:CTRL01.CUSREF||' PARAMFORM=NO');
MESSAGE('SET REPORT PROP');
V_REP := RUN_REPORT_OBJECT(REPID);
REP_STATUS := REPORT_OBJECT_STATUS(V_REP);
MESSAGE('RAN REPORT');
WHILE REP_STATUS IN ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
REP_STATUS := REPORT_OBJECT_STATUS(V_REP);
END LOOP;
IF REP_STATUS = 'FINISHED' THEN
IF NVL('TEST',' ') <> ' ' THEN
GEN_ALERT('NULL_ALERT','TEST');
END IF;
ELSE
GEN_ALERT('NULL_ALERT','Error when running report');
END IF;
END;
what should the desformat of the report should be..when im trying to run this it gives me 'no data found' error...why??? -
Print crystal report without using the print button on toolbar
Hi,
I am working on Crystal report XI. I need to print the report w/o using the toolbar. So I have inserted a print icon in the report. On clicking that icon it should call a jsp page which will print the report. I am not able to call any print methods provided by JRC to do this.
Can someone help me with this problem.
Is there some other way to implement it ?
Thanks
Message was edited by:
CR_newbiePrint the report where? On what printer? The server's printer?
Java code runs on the server. You can't affect the client's computer from JSP.
You can write javascript code which can call window.print() but that is working through the browser to display the print dialog box (as if the user selected file:print) -
Print crystal report in A5 paper tray
Dear Experts,
I am using VB.NET
We have different printers like "Lexmark Optra T612_DB", "HP Universal Printing PCL 5 (v4.7)", etc., in the network, there will be 2 or more trays for each printer. One of the tray has A5 paper in it. While printing Crystal report,
1. How to find in which tray A5 paper is present?
2. How to select A5 paper tray for printing?
If the above 2 are not possible with crystal report object:
1. How to print crystal report using PrintDocument object?
2. How to find in which tray A5 paper is present using PrintDocument object?
3. How to select A5 paper tray for printing? using PrintDocument object?
Currently with the following lines of .NET code, it is always printing in Tray 2
report.PrintOptions.PaperSize = PaperSize.PaperA5;
report.PrintOptions.PaperOrientation = PaperOrientation.Landscape;
Regards,
EswarUnfortunately, it will be up to you to find out what tray the correct paper size is in, then set that to the report. The CR APIs do not look up these values, they just expect you to know these and set them.
Ludek -
Print crystal report without preview
Dear All,
i want print crystal report without preview.
when i click print button i want show printer list install in that computer.
so user can choose which printer that use to print. I means like if we printing document from office, we can choose the printer.
how that i can do that?
please help.
best regards,
SurbaktiSince this issue has little to do with sql server, I suggest you post your question to a forum for CR
SAP CR community -
Print Crystal Report directly from C# without using Report Viewer
Hello All,
I need to print a crystal report directly to the printer without using ReportViewer in C#. I've a CrystalReport2(belowCode) which requires a query (Select * from JobHeader where JobNumber='J012345') to display all the data. I'm stuck with database connection
and putting all the data to DataAdapter in C# (Below Code). I also have 8 subreports in my CrystalReport2. Can somebody please give me hand on this? I'm struggling with it. Thanks.
Regards
using CrystalDecisions.CrystalReports.Engine;
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;
namespace csharp_win_printtoprinter
/// <summary>
/// Summary description for Form1
/// </summary>
public class Form1 : System.Windows.Forms.Form
//CR Variables
ReportDocument crReportDocument;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.PrintDialog printDialog1;
private System.Windows.Forms.Button button2;
private System.Drawing.Printing.PrintDocument printDocument1;
private CrystalDecisions.Windows.Forms.CrystalReportViewer crystalReportViewer1;
private CrystalReport1 CrystalReport11;
private Chart Chart1;
/// <summary>
/// Required designer variable
/// </summary>
private System.ComponentModel.Container components = null;
public Form1()
// Required for Windows Form Designer support
InitializeComponent();
// TODO: Add any constructor code after InitializeComponent call
/// <summary>
/// Clean up any resources being used
/// </summary>
protected override void Dispose( bool disposing )
if( disposing )
if (components != null)
components.Dispose();
base.Dispose( disposing );
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor
/// </summary>
private void InitializeComponent()
this.button1 = new System.Windows.Forms.Button();
this.printDialog1 = new System.Windows.Forms.PrintDialog();
this.button2 = new System.Windows.Forms.Button();
this.printDocument1 = new System.Drawing.Printing.PrintDocument();
this.crystalReportViewer1 = new CrystalDecisions.Windows.Forms.CrystalReportViewer();
this.Chart1 = new csharp_win_printtoprinter.Chart();
this.CrystalReport11 = new csharp_win_printtoprinter.CrystalReport1();
this.SuspendLayout();
// button1
this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button1.Location = new System.Drawing.Point(32, 56);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(160, 104);
this.button1.TabIndex = 0;
this.button1.Text = "Print Report No Choose Printer";
this.button1.Click += new System.EventHandler(this.button1_Click);
// button2
this.button2.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button2.Location = new System.Drawing.Point(272, 56);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(160, 104);
this.button2.TabIndex = 1;
this.button2.Text = "Choose Printer";
this.button2.Click += new System.EventHandler(this.button2_Click);
// crystalReportViewer1
this.crystalReportViewer1.ActiveViewIndex = 0;
this.crystalReportViewer1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.crystalReportViewer1.Cursor = System.Windows.Forms.Cursors.Default;
this.crystalReportViewer1.Location = new System.Drawing.Point(47, 188);
this.crystalReportViewer1.Name = "crystalReportViewer1";
this.crystalReportViewer1.ReportSource = this.CrystalReport11;
this.crystalReportViewer1.Size = new System.Drawing.Size(903, 296);
this.crystalReportViewer1.TabIndex = 2;
// Form1
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(1164, 505);
this.Controls.Add(this.crystalReportViewer1);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Name = "Form1";
this.Text = "Form1";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
#endregion
/// <summary>
/// The main entry point for the application
/// </summary>
[STAThread]
static void Main()
Application.Run(new Form1());
private void button1_Click(object sender, System.EventArgs e)
crReportDocument = new ReportDocument();
//Create an instance of a report
crReportDocument = new CrystalReport2();
//Use error handling in case an error occurs
try
//Set the printer name to print the report to. By default the sample
//report does not have a defult printer specified. This will tell the
//engine to use the specified printer to print the report. Print out
//a test page (from Printer properties) to get the correct value.
System.Drawing.Printing.PrintDocument printDocument = new System.Drawing.Printing.PrintDocument();
crReportDocument.PrintOptions.PrinterName = printDocument.PrinterSettings.PrinterName;
//Start the printing process. Provide details of the print job
//using the arguments.
crReportDocument.PrintToPrinter(0 ,true , 1, 1);
//Let the user know that the print job is completed
MessageBox.Show("Report finished printing!");
catch(Exception err)
MessageBox.Show(err.ToString(), "Unexpected exception");
private void Form1_Load(object sender, System.EventArgs e)
private void button2_Click(object sender, System.EventArgs e)
//Open the PrintDialog
this.printDialog1.Document = this.printDocument1;
DialogResult dr = this.printDialog1.ShowDialog();
if(dr == DialogResult.OK)
//Get the Copy times
int nCopy = this.printDocument1.PrinterSettings.Copies;
//Get the number of Start Page
int sPage = this.printDocument1.PrinterSettings.FromPage;
//Get the number of End Page
int ePage = this.printDocument1.PrinterSettings.ToPage;
string PrinterName = this.printDocument1.PrinterSettings.PrinterName;
crReportDocument = new ReportDocument();
//Create an instance of a report
crReportDocument = new Chart();
try
//Set the printer name to print the report to. By default the sample
//report does not have a defult printer specified. This will tell the
//engine to use the specified printer to print the report. Print out
//a test page (from Printer properties) to get the correct value.
crReportDocument.PrintOptions.PrinterName = PrinterName;
//Start the printing process. Provide details of the print job
//using the arguments.
crReportDocument.PrintToPrinter(nCopy, false, sPage, ePage);
//Let the user know that the print job is completed
MessageBox.Show("Report finished printing!");
catch(Exception err)
MessageBox.Show(err.ToString());1. This is a VB.Net forum not a Visual C# forum. For Visual C# questions try this forum.
Visual C#
2. Crystal Reports are not supported by Microsoft. Therefore, unless somebody responding in the Visual C# forum has experience with whichever version of Crystal Reports you are using, you will probably not receive an answer in the Visual C# forum. SAP has
their own assistance for Crystal Reports using Visual Studio. You can try to find an appropriate forum to ask questions in at SAP in the below link.
SAP Community Network
La vida loca -
Unable to print crystal report over web using ActiveX Control
Post Author: jimmyp
CA Forum: General
We have a problem with printing crystal report over web using ActiveX Control. When clicking print button, it only shows a blank dialog web crystal viewer page without any error. The page just simply hangs. We installed the PrintControl DLL and enable all the security setting for ActiveX Control for IE. It still does not print. Does anyone know why?
Environment.
Bundle Crystal Report v10
Asp.net 2.0
IE 6.0 or higher.
Appreciate for your help.
JimmyPost Author: Ian Kulmatycki
CA Forum: General
A team member here found this, I haven't read it, I'm not sure if our problems are related to this, but hopefully it helps someone:
-ian
When Secure Sockets Layer (SSL) is enabled, using the ActiveX control to print reports from a Crystal 10 DHTML viewer results in the following error message:
"A communication error occurred, printing will be stopped."
How can this error message be resolved?
Resolution
This is a known issue with Crystal Reports 10 and Crystal Enterprise 10 viewers and has been tracked. The Track ID is ADAPT00282199.
This error occurs due to the receiving application performing a case-sensitive check for the HTTPS request header value "ON". When a sender application sends the value as "on" in lower case, the error occurs. The update below changes the receiving application to be case-insensitive.
Hot Fixes or Service Packs address this issue as indicated below. With the updates, this issue is resolved.
Unless indicated otherwise, Weekly Hot Fix updates from our FTP site have only been tested with English versions of products.
For Crystal Reports 10 and Crystal Enterprise 10, the update for this issue is included in the Crystal 10 Viewers Weekly Hot Fix (WHF). This is available in English only at the following location:
ftp://ftp.crystaldecisions.com/outgoing/EHF/viewers10win_en.zip
This issue is addressed in the following components (and later versions):
PageObjectModel.dll, version 10.0.5.785, dated 8/25/2004
ReportRenderer.dll, version 10.0.5.785, dated 8/25/2004
WebReporting.dll, version 10.0.5.785, dated 8/25/2004 -
Problem in printing Crystal Report from SAP Business One - the printing cut in it width margins
Hi
i'm trying to print crystal report layout from sap b1. when i preview the report as pdf file, i have the option to choose Fit in size option and then the layout print O.k with out any margins that been cut.
The problem start when i'm trying to print the layout directly from sap b1 (printer button) which cause the page to be cut in it width margins.
How can i control the printing of crystal layout when i'm printing it directly from sap b1? do i have the option to chose 'Fit page size' from sap system?Hi,
Please check SAP note:
1820939 - Page settings of Crystal Reports not transferred
correctly
Thanks & Regards,
Nagarajan -
Error message when trying to view/print Crystal reports in B1
I get the following Error message when trying to view/print crystal reports in SAP B1/Crystal Reports Integration Tool for SAP Business One:
" Could not load file or assembly 'Crystal Decisions Windows Forms, version=12.0.2000.0, Culture=neutral, Public Key Token=692fbea551e1304' or one of its dependencies. The system cannot find the file specified. ????Hi
Common issues for this :
1. Once you install crystall add on ,you need to go to Crystal report Administration >Account setup .
Put on the user name and password and click on creating ext tables
Try then running the report .
If not the case ,
make sure you install runtime .
You need :
1.Crystal report basic from SAP download -(Not necessary if you want only report viewer >
2.You need to have crystal integration addon (I think service pack is SP1)
3.Make sure you have runtime install
When you are installing ,make sure you restart your PC before you do or remove temporary file s
Hope this solves your issue
Bishal -
Printing Crystal Report to Printer from Windows Service
Hello Support,
We are currently using 13.0.3.612 version of Crystal report. We want to print the report to the printer from the windows service. For printing the report to the printer we are using the “PrintOutputController.PrintReport” method. At our end on the Windows 8 machine this method is giving following error:
Message: Error HRESULT E_FAIL has been returned from a call to a COM component.
StackTrace: at CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.PrintReport(PrintReportOptions options)
at PMLWLibrary.CrystalReport.LoadReports()
And on the Windows 7 machine the report is sent to the print spooler, however the report is not printed on the printer. Not sure what could be causing the issue. Can you please let us know what could be causing the issue.Hi Brian,
Thank you for your response.
We tried running the service under the domain user account as well which has access to the printer, but even this fails. Further, from the regular .net application when we try to print the report to the printer, it directly prints the report without displaying any print window. So I assume that even from the service no print window should be launched. Can you please confirm on this.
We are attaching herewith the code snippet which we have used to print to printer through the service. Can you please review the same and let us know if we are missing something here.
Dim printReportOptions As New CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions
Dim printOutputController As New CrystalDecisions.ReportAppServer.Controllers.PrintOutputController
Dim rptClientDoc As CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument
rptClientDoc = ReportDocument.ReportClientDocument
printReportOptions.PrinterName = "\\pc2\HP LaserJet 1015"
printReportOptions.JobTitle = [Enum].GetName(GetType(ReportNames), PrinterSetting)
printReportOptions.Collated = False
printReportOptions.AddPrinterPageRange(1, 1)
rptClientDoc.PrintOutputController.PrintReport(printReportOptions) -
Printing Crystal Reports without calling Adobe Acrobat preview window
Post Author: akurilin
CA Forum: General
Hi, each time a click a Print icon in a Crystal report preview toolbar, it opens a dialog box which opens an Adobe Acrobat preview window. Is it possible to print a Crystal report without calling Adobe Acrobat window?
Thanks in advance,
Anatoly KurilinPost Author: lakarne
CA Forum: General
I want to know if I useing Crystal Reports xi and want print without calling Adobe Acrobat preview window, how can I do it? -
Crystal Report 2008 - Run to Printer error
We upgraded our FSCM8.9 to FSCM9.1. We can run the crystals to file. But while running it to a network printer, I receive the following message. "Crystal Runtime exception: The printer specified can not be found. It may not be accessible in the current security context."
Do any have faced same problem with crystal reports 2008.
Thanks InAdvanceWe had to define all the printers to the Server. Once defined, the crystal reports would run and print.
-
Crystal Report Supporting Dot Matrix Printer
hi all.
Please tell me the crystal report's support for dot matrix printer , crystal reports are very slow on dot matrix.
RegardsQuestion is already answered in link
Printing Speed on Dot Matrix
Jeyakanthan -
Printing Crystal reports via Great Plains 10
Hi,
I am unable to print (to printer) crystal reports in Great Plains 10. I can preview the report, export and print the exported file but the Print button does not respond when I click it (no errors, nothing) in the Crystal preview screen. We are using Crystal XI, Developers Kit.
I have set the report to 'No Printer', verified that I can print other files from the server, verified the default printer and I have spokes to GP (Microsoft), nothing has helped with this issue.
OS:
MS Windows Server 2003
Standard Edition
SP1
Thanks,Hi Carolyn,
Great Plains is an OEM partner of ours and they MUST resolve this issue for you. If they can not figure out what the problem is they can create a case on line to get help from Support to help you.
Not sure if you have Crystal Reports Designer or not but if you do can you print from the Designer? If you can then it's an issue in Great Plains software.
Thank you
Don -
Printing Crystal reports into adobe-hyperlinks arent getting created
We use a third party program, iMIS to print confirmations. These confirmations are created in Crystal Reports. When i print these documents to adobe not all hyperlinks are coded.
If i export the document to word then print that document into adobe it has the embedded hyperlinks. (But this way entails alot of extra steps to create, and no normal user will want to do this)
Is there anyway i can get the embedded hyperlinks to print straight into adobe? (without having to do the many extra steps it takes to export to word then to adobe)
(it is very frustrating, b/c i am the one that created these 'cool' reports but no one is getting the information.)If Crystal Reports supports creation of a PDF with PDF Link annotations it will be discussed in the Crystal Reports Support/User documentation. If it is not supported then you'll have to accept the Crystal Reports limitation and continue with the "2-step" shuffle.
At its core the issue is with Crystal Reports rather than PDF or Acrobat.
Be well...
Maybe you are looking for
-
10.6.2 httpd respawning endlessly.
My server's log is full of this: Feb 28 00:40:31 atlas com.apple.launchd[1] (org.apache.httpd): Throttling respawn: Will start in 10 seconds Feb 28 00:40:41 atlas org.apache.httpd[2466]: (48)Address already in use: make_sock: could not bind to addres
-
Creation of IBASE with the XIF adapter
Hello, I am trying to create IBASES using the XIF adapter (LSMW). The actual creation of the IBASE is no problem, but creating an IBASE with a partner + address connection seems not to work. In HELP.SAP there are examples of IBASE craetion with compo
-
Mac Mini - System Preferences Not Responding
Hi I'm using a Mac Mini with OS X 10.9.3 software. Today, I finally uninstalled Mackeeper using CleanMyMac Uninstaller and the only discernable difference I have is that my screen saver administered through the System Preferences 'desk top and screen
-
Hi all.. i am implementing MSS PCR on EP 60... MSS 100 when i user any of the scenarios in PCR, it gives me an error "Error in try-catch block - Template could not be retrieved" whereas ... the template in ISR scenario defination exists. this is the
-
IPhone stuck in Recovery, keeps failing on error (9)
Suddenly my iPhone 4S rebooted and im forced to do a full Recovery update with iTunes. But every Time i try to update it fails with an error (9). The Firmware before was 6.0.1 and the Firmware i'm trying to recover to is 6.0.1. Tried different PC, Ma