Print crystal report failed in SAP B1 add-ons
I had develop a add-on for viewing Crystal Report in SAP B1 form. There was no problem in viewing and also the function in the crystal report viewer. (eg. export, search). The only problem is the print function in the crystal viewer cannot function at all. (Click on the button don't have trigger anything)
So anyone got suggestion on what happen to it? any others solution for it?
Is it possible i print it with SAP B1 print function?
I'm using:
- Crystal Report XI
- Reference used
- CRAXDRT
- CrystalActiveXReportViewerLib11
Thanks for any help and suggestion.
Hi hock,
i don't have hWnd set and its working.
my interface program is written in vb6 - so i guess its 0
or maybe it has something to do that i've this functions included.
i can't remember - iam developing too much things
Declare Function PEOpenEngine Lib "crpe32.dll" () As Integer
Declare Function PEGetErrorCode Lib "crpe32.dll" (ByVal printJob As Integer) As Integer
Declare Function PEOpenPrintJob Lib "crpe32.dll" (ByVal RptName As String) As Integer
Declare Function PEOutputToWindow Lib "crpe32.dll" ( _
ByVal printJob As Integer, _
ByVal Title As String, _
ByVal myLeft As Long, _
ByVal Top As Long, _
ByVal myWidth As Long, _
ByVal Height As Long, _
ByVal style As Long, _
ByVal PWindow As Long) As Integer
Declare Function PEOutputToPrinter Lib "crpe32.dll" ( _
ByVal printJob As Integer, _
ByVal nCopies As Integer) As Integer
Declare Function PEStartPrintJob Lib "crpe32.dll" ( _
ByVal printJob As Integer, _
ByVal WaitOrNot As Integer) As Integer
Declare Function PEClosePrintJob Lib "crpe32.dll" (ByVal printJob As Integer) As Integer
Declare Sub PECloseEngine Lib "crpe32.dll" ()
try it
regards
David
Similar Messages
-
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 -
Failed to retrieve data from the database crystal reports 2008 in SAP B1
Hello friends,
I am using Crystal report 2008 with SAP B1 PL 8.8. When I run any report, it runs correctly from Crystal Report. But whenever I try to open the same report through SAP ( Tools -> Preview External Crystal Report ), it prompts the parameters for that report and then open up the crystal report window and throws an Error message ("failed to retrieve data from the database. Details [Database Vendor Code: 156]").
Please any one suggest me the corrective solution.
Thanks in Advance,
Keyur Raval.I had the same problem in SAP B1 2007. Report worked fine except when it was open from B1. Generally there may be different problems. In my case the same problem was caused by using some procedure which was in a specific schema. Changing the schema into "dbo" solved the problem.
Radoslaw Blaniarz -
I have linked my first Crystal report into SAP (2007A), but when I try to run it I get an error.
Msg header "SAP Crystal AddOn"....Could not load file or assembly 'CrystalDecisions.Windows.Forms, Version = 12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
I searched the SAP forums, but found nothing regarding this error. Anybody have an idea how to fix? I can't see my Crystal report. Does the report need to be stored in a specific location for it to be called from SAP? I was able to browse to it when I setup the link in SAP.
Edited by: shredder on Nov 17, 2009 11:52 PMHi Shredder ,
Actually you should have posted in reporting and printing forum ..anyway close your previous thread too..
and please take a look at this
*I copy from the other thread *
Client you need to install .net framework 3.5 and Crystal Run time to run reports.
in the client make sure the shared directory is accessible from run without any password
and in the add on go to report properties and set the path to the shared folder .rpt files and apply changes
use OLE DB connection
CRYSTAL REPORTS 2008 V1 FOR B1
(click on Installation)
https://websmp208.sap-ag.de/~form/handler?_APP=00200682500000001943&_EVENT=DISPHIER&HEADER=N&FUNCTIONBAR=N&EVENT=TREE&TMPL=01200314690900002156&V=INST
Crystal Reports Integration for SAP Business One
http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/707f51b3-0b20-2b10-8daa-d8ee72ace309 [original link is broken]
in case you have any problem installation go through the demo and make sure you have installed correctly
https://websmp201.sap-ag.de/~sapidp/011000358700000727712008E.htm
Hope this helps
Bishal -
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 -
Error in Printing Crystal Report Directly to Printer using SDK Code
Hello ,
I am trying to print a crystal report created in SAP Crystal Reports 2008 through SDk Code using one parameter
as (Document Number).But While running the Code the Report is not getting printed and also the system is
not able to fetch the correct data in the report using the supplied parameter .
I am using Visual Studio 2005 Crystal Report dll s in my code :-
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Imports CrystalDecisions.CrystalReports
Imports System
Imports System.Data.SqlClient
Imports System.IO
For Clarification i am pasting my code below :-
Dim oRpt As ReportDocument
oRpt = New ReportDocument
oRpt.Load(Path)
With crConnectionInfo
.ServerName = Server
.DatabaseName = Database
.UserID = User
.Password = Password
End With
CrTables = oRpt.Database.Tables
For Each CrTable In CrTables
crtableLogoninfo = CrTable.LogOnInfo
crtableLogoninfo.ConnectionInfo = crConnectionInfo
CrTable.ApplyLogOnInfo(crtableLogoninfo)
Next
oRpt.ParameterFields("Document Number").CurrentValues.AddValue(Parameter)
If Printer <> "" Then
oRpt.PrintOptions.PrinterName = Printer
End If
oRpt.PrintToPrinter(Copies, False, 0, 1)
Catch ex As Exception
SBO_Application.MessageBox(ex.Message)
End Try
Please suggest me what i have to do in my code to print the report with correct data in report.
Thanks & Regards,
Amitk
-
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 -
Vista/Adobe 9/sql image Error in Crystal Report:Failed to Export the Report
When I try to export my Crystal Report (v2008) from a Vista machine (using Crystal RDC export methods) as a PDF, I get the following error:
Error in Crystal Report: Failed to export the report.
This only happens when a particular subreport (that contains a sql image) prints (based on an input parameter). We have other subreports (within this same report) that print a sql image just fine. But, when this subreport prints, the above error appears.
I can run the same report on an XP machine without error.
Exportmodeller.dll and crtsv.dll are both installed and registered to the
C:\Program Files\Common Files\Business Objects\3.0\bin folder
I have tried opening the report, removing the image, and then adding it back in again to the subreport.
Still receive the same error.
Any suggestions?>
Don Williams wrote:
> RDC is no longer shipped in CR 2008. You are using the embedded designer used within the Visual Studio .NET IDE and is not licensed for distribution.
>
> Upgrade to the .NET components and post your question to the .NET forums.
>
> Also, those old dll's will not work in CR 2008. Last patches will give you the option to export to Excel in Legacy mode. We built it into our export dll.
Don,
Can you please clarify?
Our VB6 app that uses Crystal XI RDC runtime components. Our Crystal reports are edited in CR2008 SP1 developer edition (not through the VB.NET embedded report designer). We have deployed the CRXIRelease 2 runtime components (via the merge module) to our client machines in order to execute the RDC.
We can print/preview/export to excel, but the pdf creation is failing with this error.
We are only using the RDC (which we know is no longer supported) because of huge issues with the Crystal for .NET methods we are having with our customers (I have an active case for this issue). Therefore, we have to rollback our .NET product and revert to the RDC code.
Vista is failing to create a PDF for a report developed in the CR2008 SP1 developer edition when using the RDC.
When you say "Also, those old dll's will not work in CR 2008. Last patches will give you the option to export to Excel in Legacy mode. We built it into our export dll.", what do you mean by "will not work in CR2008"?
Thank you -
Getting No rights error in Crystal Reports connection with SAP ECC 6
I am ABAP/BI developer and would like to work in Crystal Reports 2011. Currently, We have SAP ECC 6 and BI 7 set up. I have installed trial version of Crystal Reports 2011.
I am getting error while trying to create blank report in Crystal Reports:
Create New Connection -> SAP Tables.. -> entered SAP Development server user id and password -> following error message :
LOGON failed
Details : You do not have necessary rights to design reports against the SAP system. Please check with your system administrator.
My user id has all rights in development server. So, is any special rights require? OR do we have to install any patch for Crystal Reports at SAP level?
Please guide me.Hi,
To be able to report off an SAP data source in Crystal Reports, request the SAP Administrator to set the appropriate authorizations for the user.
For a list of authorizations that are necessary for each type of SAP connection, consult the document:
BusinessObjects XI Integration for SAP Installation Guide
In the "Authorizations" chapter, there is a description of each authorizations needed for each type of connection and actions.
( The document is attached to this SAP Knowledge Base Article in the attachment section )
In addition to the authorizations specified in the SAP Integration Kit Installation Guide, the following authorizations are required:
For Authorization object: S_RFC with Field name: RFC_Name. According to the installation guide the values should be: SYST, /CRYSTAL/OPENSQL
Additionally you will need the value: SUSR as well.
For Authorization object: ZSEGREPORT with field name: ACTVT. According to the installation guide the value is: 02 (Change)
Additionally you will need the value: 01 (Create or generate) as well.
Thank you. -
Where to find Crystal Report Formats for SAP B1 8.8 (India Localization) ?
Hi Experts,
do anybody knows Where to find Crystal Report Formats for SAP B1 8.8 (India Localization) ?
For example
Sales Register
Purchase Register
Journal Register
Sales Analysis - Crystal Report
Purchase Analysis - Crystal Report
Check Register - Crystal Report
Production register
Pending Sales Order
Outstanding Receivable
Outstanding Payable
BankBook
CashBook
General Ledger
BP Ledger (Customer / Supplier)
Trial Balance
Balance Sheet
Profit & Loss Statment
Cash Flow statment
Excise reports
RG 23 A Part I
RG 23 A Part II
RG 23 C Part I
RG 23 C Part II
Daily Stock Account
RG 1
ER 1
etc....
Documets Layout
Incoming Payment
Outgoing Payment
Journal Entry
Transaction Journal Report - Crystal Report
Sales Quotation
Sales Order
Sales Delivery
Sales Return
Sales Invoice (A/R Invoice)
Purchase Order
Goods Receipt PO
Purchase Goods Return
Purchase Invoice (A/P Invoice)
Inventory Transfer
Inventory - Goods Receipt
Inventory - Goods Issue
Best Regards,
Samir GandhiHi Neetu,
Do you wish that at all customer site all concern involved in implemtation do the same work ?
I believe ERP is meant for single entry system, and it should be true for implementation also, why to invest man hours for the same task ?
I expect it standard reports should be released by SAP, so that speed of implementation improve, we have more nos. of satisfied customers.
customised reports is all together different and it is understood that it is needed to be developed after study the exact requirement.
Best Regards,
Samir Gandhi -
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 -
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 -
How to open Crystal Report from the SAP GUI ?
Hi experts,
We have developed some reports for our ECC 6.0 system by using Crystal Report 2008 and SAP integration kit , these reports are published to BO edge 3.1 server. To view the report, our user have to open IE and login Infoview first.
For convenience, we want to open Crystal report from SAPGUI directly without login BOE, How can we do it?
Thanks.Hi
please take a look here
Crystal Reports
Regards,
STratos -
Crystal Reports access to SAP/CRM 6.0 with Integration with SAP Solutions
Hello,
we are running Crystal Reports 2008 with SAP CRM 6.0.
To boost productivity or Report writeing we need especially access to:
- Function Modules
- the CRM Business Objects Repository (Transaction SW01).
What kind of SAP/CRM ( or SAP / ERP ) Objects can be accessed with the Integration for
SAP Solutions ?
The BO Documentation [BusinessObjects XI Integration for SAP Solutions User's Guide|http://help.sap.com/businessobject/product_guides/boexir31SP2/en/xi31_sp2_bip_sap_user_en.pdf] does not give a clue if this is possible.
However, Ingo Hilgefort stated in his book that it is at least possible to access ABAP Functions, SAP Querries and SAP InfoSets.
What is the minimum product portfolio and the necessary Version - Can I install the following products stand alone ?
Crystal Reports 2008
Integration for SAP Solutions
Tomcat / Jaco
or
Must I need at minimum BO Edge and must install the CMS Server ?
Thank You
MartinHI,
What kind of SAP/CRM ( or SAP / ERP ) Objects can be accessed with the Integration for
SAP Solutions ?
here is also a blog about this:
/people/ingo.hilgefort/blog/2008/03/23/businessobjects-and-sap-part-4
However, Ingo Hilgefort stated in his book that it is at least possible to access ABAP Functions, SAP Querries and SAP InfoSets.
>> correct. It is also in the Installation Guide / User Guide for the SAP Integration kit. You can use ABAP Functions, ABAP / SAP Queries, InfoSets, Tables
What is the minimum product portfolio and the necessary Version - Can I install the following products stand alone ?
Crystal Reports 2008
BusinessObjects Integration for SAP Solutions
BusinessObjects Edge or BusinessObjects Enterprise
Ingo -
What's ObjectId in Crystal Report 2008 for SAP B1 8.8
Hi all!
I am using Crystal Report 2008 for SAP B1 8.8, i don't know ObjectID use for what. In some report temlate of Crystal Report 2008 for SAP B1 8.8, i saw they aways use this.
Please explain for me.!!
Thanks!There is a very usefull document, HowTo_Work_withCR_88.pdf.
This should have been in you 8.8 upgrade package.
This document explains quite a bit about how to create crystal reports and how to import into 8.8 as reports, or layouts.
Your question is not specific enough for me to answer, but if you re-phrase it, I'll see if I can help.
Rob
Maybe you are looking for
-
Generating tab canvas pages with Headstart olb fails (CDG-01364)
I'm trying to generate a form (master + details), details on tab canvas pages. When generating with qmsolb65.olb generation fails with error CDG-01364 (Available width on content canvas 2 (-199) less than minimum allowable width (450)). When generati
-
Dling external .swf files while main movie is playing
Does anybody know a command to have your flash movie download external .swf movies within the "main" movie while playing. I have about 8 .swf's that are all linked together but the problem is the loading of each one seperatly (kinda lags a bit b4 eac
-
ImageObserver interface is implemented by Applet in the form of imageUpdate method by which we can continuosly monitor the status of the image. Does anybody know how this works internally ?? Does the imageUpdate fucntion periodically probe the image
-
I used Firefox all the time. I installed Firefox 3.6.11 and it all looked fine. I'm running on XP service pack 3. Now when I bring Firefox up it does not connect to the tabs specified at startup, say that they cannot be found and if you try another o
-
I need to delete an empty folder. I tried all of the possible things to delete it, but still whitout any luck. Restarted the phone, updated software, etc... Please help ! Thank you.