Create a layout printing in Crystal Reports
Hello friends
I am new to using crystal reports, I have worked and made reports in Crystal Reports
What I want is to know how to layout and reports.
I have a print layout I've done what I wanted manual is to make it crystal and can call it from a marketing document
I want to know step by step how to create the connection and add the store procedure or query.
I hope I can help
hi,
please check this thread
How do I create a crystal report layout with a table and borders
also check the ff. videos from SAP
http://www.youtube.com/watch?v=seuAZFjOOhs
http://www.youtube.com/watch?v=YPGwQ2IbxUE&feature=mfu_in_order&list=UL
tip:
you can also try to search from youtube, a lot of training & tutorials you can find there.
regards,
Fidel
Similar Messages
-
Error WHen trying to print a crystal report
I am trying to print a system crystal report and it is giving me the following error: "Error during printing; ensure all parameters are defined". And it prints the first page, but none of the consecutive pages if there are more than 1. Is there some type of setting that needs to be set for printing?
Hmmmmm it says "page range" ALL. I was able to print fine until I created a new layout and saved it. THen I went to print it and got the error. But it seems I get the error when I print any crystal report in any DB. Is this a setting in crystal, SAP, or printer itself? I can print the second page if I toggle through to the second page on the crystal report view, and go to print, and put 2 next to pages feild. Otherwise it is set to print ALL, however it is not doing that.
-
Preview and print a Crystal report prompted for the sa password
Dear All,
Our customer has Crystal report add-on to be installed. When we Preview and print a Crystal report, we got a window prompted for the sa password. Even we type in a correct password, it still says wrong password...
Every time when I open my report in Crystal Basic 2008 on the server, then go database expert >> My connections >> click + in front of the connection name, it asks my sa password. I type in my password then save and close. Next time when I open the report and go my connections, I have to type in my password again. This only happens on one customer.
Any idea? Thanks a lot.
Regards,
YukaHi Yuka,
1) All their SAP client workstation, they have to have use SQL2008 CD and install SQL Client on it
Correct, MS does NOT support MDAC or WDAC when connecting to SQL 2008.
2) Then go ODBC >> SQL Native Client 10.0 >> Create a new connection to SAP server. Should we use sa user or another use that has the same authorization as sa?
Correct again if they are also using ODBC to connect, as for using the sa account or creating a new one is up to you. I suggest creating a Crystal account with what ever rights your app needs, this way if tracing it turned on etc. you can confirm who is actually running the report.
3) Then from MY Crystal report, I have to use ODBC connection as well?
Just to clarify, if you created your reprots using OLE DB then they can do so also. But you need to update your connection properties. Open each report click on Database, Set Location, scroll down to OLE DB and expand and then choose MS SQL Server Native 10 as your OLE DB provider, fill in all the logon info and then verify the database. Do the same for each subreport also.
Save your report and either send them the new one or if you are doing this remotely then replace the original report.
VERIFY your reports to confirm they still return correct data and do work as expected.
Or if you are using ODBC then yes you do select the MS 10 driver with a new DSN. Then do the above to update the reports to all use ODBC as their data sources.
Hope this is all clear now....
Thanks again
Don -
How to print directly to Printer from Crystal Report Viewer ?
Hi All,
We are integrating our Java Web Application with Crystal report XI, currently using JRC and export to PDF for user to preview and print to local printer.
Now there is new requirement :
Some clients is using thin client terminal (no harddisk, only has OS +Browser in ROM), so I cannot install Acrobat Reader for them to preview&print the report.
So I am looking at Crystal Report Viewer, the question is : Can I print from Crystal Report Viewer directly to local printer without first converting it to PDF (because I can't have acrobat reader installed) ??
Thank you very much,
Krist
IndonesiaHi,
It can't be achieved through XI.
JRCXI R2 SDK offers the ability to print the report server side
using the PrintOutputController using printReport(PrintReportOptions printReportOptions) method.
Here is the code(for XIR2):
import="com.crystaldecisions.reports.sdk.*"
import="com.crystaldecisions.sdk.occa.report.lib.*"
import="com.crystaldecisions.sdk.occa.report.document.*"
try {
final String REPORT_NAME = "Inventory.rpt";
ReportClientDocument reportClientDoc = new ReportClientDocument();
reportClientDoc.open(REPORT_NAME, 0);
//Create and set print options.
PrintReportOptions printOptions = new PrintReportOptions();
//Note: Printer with the 'printer name' below must already be configured.
printOptions.setPrinterName("
10.10.45.220
BOBJ 2C");
printOptions.setJobTitle("Sample Print Job from JRC.");
printOptions.setPrinterDuplex(PrinterDuplex.horizontal);
printOptions.setPaperSource(PaperSource.auto);
printOptions.setPaperSize(PaperSize.paperLetter);
printOptions.setNumberOfCopies(1);
printOptions.setCollated(false);
PrintReportOptions.PageRange printPageRange = new PrintReportOptions.PageRange(1,1);
printOptions.addPrinterPageRange(printPageRange);
//NOTE: If parameters or database login credentials are required, they need to be set before.
//calling the printReport() method of the PrintOutputController.
reportClientDoc.getPrintOutputController().printReport(printOptions);
reportClientDoc.close();
out.println("Successfully sent report to the printer.");
catch(ReportSDKException ex) {
out.println(ex);
Please revert in case you have any query.
Thanks,
Neeraj -
Duplex Printing in Crystal Reports
Post Author: Razzle00
CA Forum: General
Where can I get some information or sample code on how to duplex print with crystal reports?
Thanks,
RazzlePost Author: senglee
CA Forum: General
Here was how I did it using vb.net and crystal reports.
1. In the report, create a seperate detail section to hold your second page. Crystal will see it as Details a & b. In section a, set the new page after property. This will cause the second page (details b) to print on a seperate page.
2. Ok. The next step is to programmically tell your printer to print in duplex. Study the code below and modify it to suite your needs.
' Declare an object of your report. Dim objReportObject As New rptTheDailySavings
'Declare a printoptions object of the objReportObjects print option. Set the settings. Dim PrintOptions As CrystalDecisions.CrystalReports.Engine.PrintOptions = objReportObject.PrintOptions PrintOptions.PrinterName = "Your Printer Name Here" PrintOptions.PaperOrientation = CrystalDecisions.Shared.PaperOrientation.DefaultPaperOrientation PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.DefaultPaperSize PrintOptions.PrinterDuplex = CrystalDecisions.Shared.PrinterDuplex.Default PrintOptions.PaperSource = CrystalDecisions.Shared.PaperSource.Auto
' Send the report to the printer. objReportObject.PrintToPrinter(1, False, 1, 2)
Hope this helps. -
Error in Preview and Print in Crystal Report Viewer 2.0.0.7 in Workstation
Hi Guys,
I am encountering a problem when clicking preview and print in Crystal Report Viewer 2.0.0.7. It returns an error
Unhandled exception has occurred in your application. If you click Continue the application will ignore and attempt to continue. If you click quit, the application will close immediately. Load report failed.
I already install the runtime crruntime_120_mlb, . net framework 3.5 sp1 and the add-on itself. The viewer is working properly in SAP Server. My version of SAP is SBO 2007 A SP00 PL10.
Regards,
Michaelhere's the detailed error
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
Exception Text
CrystalDecisions.Shared.CrystalReportsException Load report failed. --- System.Runtime.InteropServices.COMException (0x80004005) The device is not ready.
at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
--- End of inner exception stack trace ---
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.EnsureLoadReport()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.get_Database()
at SAP_CR.MyForms.frmReportViewer.ConfigureCrystalReports()
at SAP_CR.MyForms.frmReportViewer.frmReportViewer_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Loaded Assemblies
mscorlib
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3620 (GDR.050727-3600)
CodeBase fileCWINDOWSMicrosoft.NETFrameworkv2.0.50727mscorlib.dll
SAP_CR
Assembly Version 2.0.0.7
Win32 Version 2.0.0.7
CodeBase fileCProgram%20FilesSAPSAP%20Business%20OneAddOnsSAP_CRSAP_CR.exe
Interop.SAPbouiCOM
Assembly Version 8.0.0.0
Win32 Version 8.0.0.0
CodeBase fileCProgram%20FilesSAPSAP%20Business%20OneAddOnsSAP_CRInterop.SAPbouiCOM.DLL
System.Windows.Forms
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase fileCWINDOWSassemblyGAC_MSILSystem.Windows.Forms2.0.0.0__b77a5c561934e089System.Windows.Forms.dll
System
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3614 (GDR.050727-3600)
CodeBase fileCWINDOWSassemblyGAC_MSILSystem2.0.0.0__b77a5c561934e089System.dll
System.Drawing
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase fileCWINDOWSassemblyGAC_MSILSystem.Drawing2.0.0.0__b03f5f7f11d50a3aSystem.Drawing.dll
CustomMarshalers
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase fileCWINDOWSassemblyGAC_32CustomMarshalers2.0.0.0__b03f5f7f11d50a3aCustomMarshalers.dll
Interop.CR_Crypto
Assembly Version 6.0.0.0
Win32 Version 6.0.0.0
CodeBase fileCProgram%20FilesSAPSAP%20Business%20OneAddOnsSAP_CRInterop.CR_Crypto.DLL
System.Data
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase fileCWINDOWSassemblyGAC_32System.Data2.0.0.0__b77a5c561934e089System.Data.dll
System.Configuration
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase fileCWINDOWSassemblyGAC_MSILSystem.Configuration2.0.0.0__b03f5f7f11d50a3aSystem.Configuration.dll
System.Xml
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3082 (QFE.050727-3000)
CodeBase fileCWINDOWSassemblyGAC_MSILSystem.Xml2.0.0.0__b77a5c561934e089System.Xml.dll
System.Transactions
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase fileCWINDOWSassemblyGAC_32System.Transactions2.0.0.0__b77a5c561934e089System.Transactions.dll
System.EnterpriseServices
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase fileCWINDOWSassemblyGAC_32System.EnterpriseServices2.0.0.0__b03f5f7f11d50a3aSystem.EnterpriseServices.dll
CrystalDecisions.Windows.Forms
Assembly Version 12.0.2000.0
Win32 Version 12.0.2000.840
CodeBase fileCWINDOWSassemblyGAC_MSILCrystalDecisions.Windows.Forms12.0.2000.0__692fbea5521e1304CrystalDecisions.Windows.Forms.dll
CrystalDecisions.Shared
Assembly Version 12.0.2000.0
Win32 Version 12.0.2000.840
CodeBase fileCWINDOWSassemblyGAC_MSILCrystalDecisions.Shared12.0.2000.0__692fbea5521e1304CrystalDecisions.Shared.dll
CrystalDecisions.ReportSource
Assembly Version 12.0.2000.0
Win32 Version 12.0.2000.840
CodeBase fileCWINDOWSassemblyGAC_MSILCrystalDecisions.ReportSource12.0.2000.0__692fbea5521e1304CrystalDecisions.ReportSource.dll
CrystalDecisions.CrystalReports.Engine
Assembly Version 12.0.2000.0
Win32 Version 12.0.2000.840
CodeBase fileCWINDOWSassemblyGAC_MSILCrystalDecisions.CrystalReports.Engine12.0.2000.0__692fbea5521e1304CrystalDecisions.CrystalReports.Engine.dll
System.Web
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3618 (GDR.050727-3600)
CodeBase fileCWINDOWSassemblyGAC_32System.Web2.0.0.0__b03f5f7f11d50a3aSystem.Web.dll
CrystalDecisions.ReportAppServer.CommLayer
Assembly Version 12.0.1100.0
Win32 Version 12.0.1100.840
CodeBase fileCWINDOWSassemblyGACCrystalDecisions.ReportAppServer.CommLayer12.0.1100.0__692fbea5521e1304CrystalDecisions.ReportAppServer.CommLayer.dll
CrystalDecisions.ReportAppServer.ClientDoc
Assembly Version 12.0.1100.0
Win32 Version 12.0.1100.840
CodeBase fileCWINDOWSassemblyGACCrystalDecisions.ReportAppServer.ClientDoc12.0.1100.0__692fbea5521e1304CrystalDecisions.ReportAppServer.ClientDoc.dll
CrystalDecisions.ReportAppServer.DataSetConversion
Assembly Version 12.0.2000.0
Win32 Version 12.0.2000.840
CodeBase fileCWINDOWSassemblyGAC_MSILCrystalDecisions.ReportAppServer.DataSetConversion12.0.2000.0__692fbea5521e1304CrystalDecisions.ReportAppServer.DataSetConversion.dll
CrystalDecisions.ReportAppServer.DataDefModel
Assembly Version 12.0.1100.0
Win32 Version 12.0.1100.840
CodeBase fileCWINDOWSassemblyGACCrystalDecisions.ReportAppServer.DataDefModel12.0.1100.0__692fbea5521e1304CrystalDecisions.ReportAppServer.DataDefModel.dll
CrystalDecisions.ReportAppServer.Controllers
Assembly Version 12.0.1100.0
Win32 Version 12.0.1100.840
CodeBase fileCWINDOWSassemblyGACCrystalDecisions.ReportAppServer.Controllers12.0.1100.0__692fbea5521e1304CrystalDecisions.ReportAppServer.Controllers.dll
CrystalDecisions.ReportAppServer.CubeDefModel
Assembly Version 12.0.1100.0
Win32 Version 12.0.1100.840
CodeBase fileCWINDOWSassemblyGACCrystalDecisions.ReportAppServer.CubeDefModel12.0.1100.0__692fbea5521e1304CrystalDecisions.ReportAppServer.CubeDefModel.dll
CrystalDecisions.ReportAppServer.ReportDefModel
Assembly Version 12.0.1100.0
Win32 Version 12.0.1100.840
CodeBase fileCWINDOWSassemblyGACCrystalDecisions.ReportAppServer.ReportDefModel12.0.1100.0__692fbea5521e1304CrystalDecisions.ReportAppServer.ReportDefModel.dll
BusinessObjects.Licensing.KeycodeDecoder
Assembly Version 12.0.1100.0
Win32 Version 12.0.0.840
CodeBase fileCWINDOWSassemblyGACBusinessObjects.Licensing.KeycodeDecoder12.0.1100.0__692fbea5521e1304BusinessObjects.Licensing.KeycodeDecoder.dll
JIT Debugging
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example
configuration
system.windows.forms jitDebugging=true
configuration
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box. -
How do i print a crystal report using SAP B1 SDK's in Delphi?
Senthil,
I do not have the code with respect to how to integrate Crystal Reports using Delphi and the Business One SDK. Possibly there may be other users on SDN that use Delphi and can assist.
There is source code posted here for Crystal integration with SAP Business One written in .Net. You could look at the source code and translate possible to Delphi ...
http://www.sdn.sap.com/irj/scn/downloads?rid=/library/uuid/d0a0c14b-0e20-2b10-939b-e93a19f14c12
HTH,
Eddy -
Printing Error Crystal Report 9
When printing from Crystal report 9 packing slips where the description is 100 characters
Will get a error message that says "failed to open a row set.file PrintPick List.rpt" which hangs up
printing all other packing slips. Is there a way to prevent this?Looks like you are using a 3rd party application(?). If that is the case, you will have to get your answer from the creators of the application.
Ludek -
How do we create a jndi connection in crystal reports XI
how do we create a jndi connection in crystal reports XI when the data soiurce is configured on websphere 6.1
You need to use WLST online. I am not sure what your exact requirements are but one good way of working this is to have a WLST script that deletes all your WL customisations, like connection pools, JMS Servers etc and then creates it. That way you can run the same script repeatedly and it will get everything up to date for you. However you have to remember that everytime you add something new you need to update your delete section. Also your deleting should not fail if the item does not exist. I hope that makes sense!
As to the specifics of WLST examples to do this then check out the WLST examples in CodeShare.
If you are still having issues then post another message.
Geoff -
Printing a Crystal Report changes the printers default tray setting every
Hey,
Hopefully someone have experienced this in the past,
I am printing a Crystal Report, and in windows the printer has the tray auto as the setting. When I print from word, mspaint, or notepad, works perfect.
But when I print via Crystal Report, it changes the deafult printers tray setting every time.
Anyone have any idea, if there's a hotfix or something for this, I have problems at the client machine.
Best Regards,
LoveI dont have much idea about CR 8.
I would suggest you to try with No printer option.
Try with this also:
On Page setup click on printer ->Properties->Apply settings for default printer.
Regards,
Shweta -
Print layout designer using Crystal report
Hi Dear;
how can i create a print layout in crystal report instead of print layout designer
is any conversion of should i created from scratch?
from where can i download the crystal report templates?
regards;Hi,
There is no conversion tool between these two reports. You have to create them from scratch.
Check these threads to find out more:
Sample Crystal Reports
Re: SAP Business One and Crystal Reports
Thanks,
Gordon -
Print layout different with crystal report 2008 runtime
Hi,
I have reports which I print on a pre printed stationary. With Crystal report 11.5 run time it works fine.
Now I am using Crystal Report 2008 run time and with this I found that layout on the print is different than the actual layout in the design.
The print with CR 2008 run time is not exactly matching with the pre printed stationary. Whereas it is working fine with the 11.5 run time.
Can anyone please help?
Thanks,
Abhijit Gorhehi,
you can verify the settings
File -> Page Setup
- Printer Options
- Page Options
- Margins
Regards,
Vamsee -
Production order layout - PLD or crystal reports
hello all
I need to create a layout for the Production Order.
I want to try crystal reports or PLD.
My problem is this - For each production order linked to the same SALES ORDER, I need to print one Production Order layout(JOBCARD) with the work instructions from all the other production orders linked to the same sales order, currently we use coresuite for this, but the production order datasource is not available for SAP HANA yet.
This is how the current Production order looks in SAP B1, I need to do the same in HANA.
Thanks in advance
JaniceHi,
In standard SAP, the above requirement is not possible in PLD.
You can try with your add-on provider.
Thanks & Regards,
Nagarajan -
How to stop printing the crystal report with an alert message
I am having a field called "APPROVAL" in my stored procedure with which I prepared the CR. I want that if the value in the filed is 'A' then only the crystal report should print else it should prompt with an alert message.
Hi Sreejith,
Check this helps you:
Create an alert from "Report -> Alerts -> Create or Modify Alerts" with below steps:
1. Provide name of the alert (say Alert1)
2. Click on X+2 in front of "Message" field and write the Alert message you want to display.
3. Click on Condition button and write the condition If not({APPROVAL}='A') then true;
The above Alert will prompt with configured alert message when {APPROVAL} field is not having value of 'A'
Now, in a formula, write below content and display it where you want to display the APPROVAL field value:
If {APPROVAL} = 'A' then
{APPROVAL}
This formula content will be blank if the value of {APPROVAL} is not 'A'
Thanks,
Raghavendra -
Print PO (crystal report design) in 9*11" continuous paper
Hi There
Does anyone have been faced this problem before?
We have created PO from Crystal report and attached to SAP B1. When printing many POs with continuous paper in size of 9*11" , the socond PO onward keep losing start position and printed to lower position.
I have tried to fix page footer and report footer but it not works.
Please help if you have any suggestion.
Thanks.
Usa JHi Experts,
I'm having this same problem of printing in custom sized paper using a dot matrix printer (nuf said that its not one of the 3 printers supported by B1).
The problem is that the client wants to print by batch on this custom sized paper but whenever i try to print the documents continuously, the start of the second and succeeding documents is not aligned with the paper anymore. B1 can only print right on standard sized paper e.g A4, Legal, Letter etc... but when you try to print on a custom sized continuous paper on a dot matrix printer the printout goes zonkers (nachochorvah na ako dito ah).
Thanks!!!
Json
Maybe you are looking for
-
IPhoto 6 and Photoshop Elements 4.0
I need some help on deciding which program to buy. I can only afford one or the other right now and I know there are other programs available with iLife but right now I am only interested in the iPhoto part. Can anyone tell me the benefits of one of
-
Password Protection to the Excel File that was down loaded
Hi Friends, I had an requirement regarding the excel file.whenever the excel file is down loaded on the desktop it should be password protected.i..e, no one should be able to open the file unless they have the password.
-
when i export video and audio from premere pro 5.5 to mpeg 2, i get only the audio and video is missing. help pls.
-
Dear All, My client says that they are not able to see the field "Doc.Currency field in the "Incoming Payments" screen where they used to enter the foreign currency exchange rate. Earlier, thy entered some transcations where they entered the exchange
-
Column Length Semantics and Table Columns - NLS_LENGTH_SEMANTICS
Is NLS_LENGTH_SEMANTICS defined in oracle 10g? if not what is its equivalent. Please let me know about this.