Problem in Preview of Crystal Report

Hello Experts !!!!!
I have created a User Defined Form through SDK. I have created a Crystal Report also for that Form. Now on the click of Preview Menu of SBO I want to open my Crystal report. For this I have called the following function in Menu Event.....
Private Function LoadCrViewer(ByVal crxReport As CRAXDDRT.Report) As Boolean
        Dim SBOFormCreationParams As SAPbouiCOM.FormCreationParams
        Dim SBOCRViewer As SAPbouiCOM.ActiveX
        Dim SBOForm As SAPbouiCOM.Form
        Dim SBOItem As SAPbouiCOM.Item
        Dim strFormCount As String
        SBOFormCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
        SBOFormCreationParams.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbs_Sizable
        SBOFormCreationParams.FormType = "XX_INCRPT01"
        strFormCount = SBO_Application.Forms.Count.ToString
        SBOFormCreationParams.UniqueID = "XX_INCRPT01" & strFormCount.PadLeft(3, "0")
        'Add new form
        SBOForm = SBO_Application.Forms.AddEx(SBOFormCreationParams)
        SBOForm.Left = 0
        SBOForm.Top = 0
        SBOForm.Width = SBO_Application.Desktop.Width
        SBOForm.Height = SBO_Application.Desktop.Height
        SBOForm.Title = "inCentea - Mapas"
        'Add CRViewer item
        SBOItem = SBOForm.Items.Add("XX_CR01", SAPbouiCOM.BoFormItemTypes.it_ACTIVE_X)
        SBOItem.Left = 0
        SBOItem.Top = 0
        SBOItem.Width = SBOForm.ClientWidth
        SBOItem.Height = SBOForm.ClientHeight
        ' Create the new activeX control
        SBOCRViewer = SBOItem.Specific
        SBOCRViewer.ClassID = "CrystalReports13.ActiveXReportViewer.1"
        Dim SBOCRViewerOBJ
        SBOCRViewerOBJ = SBOCRViewer.Object
        SBOCRViewerOBJ.EnablePrintButton = False
        Dim MyProcs() As Process
        Dim i, ID As Integer
        Dim a As System.IntPtr
        'Try Send the handle of SAP window
        SBO_Application.Desktop.Title = "SBO under " + SBO_Application.Company.UserName
        MyProcs = Process.GetProcessesByName("SAP Business One")
        For i = 0 To MyProcs.Length - 1
            If MyProcs(i).MainWindowTitle = SBO_Application.Desktop.Title Then
                ID = MyProcs(i).Id()
                a = MyProcs(i).MainWindowHandle
                crxReport.SetDialogParentWindow(a.ToInt32)
                'crxReport.PrinterSetup(a.ToInt32)
                'crxReport.PrintOut(False)
            End If
        Next
        SBOCRViewerOBJ.ViewReport()
        SBOForm.Visible = True
        Return True
    End Function
But this Code is throwing an exception "No report to view."  on the statement    "SBOCRViewerOBJ.ViewReport()"
Please let me know where is the problem? And if possible then please rectify the Code.

hello,
I have same issue as yours,
If you have found the solution for the same, please post the solution here, so that we can refer to it.
Thanks in advance for your help.

Similar Messages

  • Print Preview using crystal report in SAP B1 slow.

    Dear all,
    I face another problem. Print preview using crystal report in SAP B1 is very slow. Although i have create a query view in SQL server but it's still slow for my user. First time i create using table in crystal report. just drag the table. It's take more than 10 minutes. After that i move all the query to view in SQL server , it's take 1-2 minutes to print preview some time more.. But i think that it's still slow. Does any one know how to print preview fast. Just like in PLD.
    Thanks in advance
    bodhi86

    Hello,
    How do you answered to this question ?
    Malika
    Edited by: Malika Sanoune on May 13, 2011 1:48 PM

  • Print preview using crystal report in SAP B1 is very slow.

    Dear all,
    I face another problem. Print preview using crystal report in SAP B1 is very slow. Although i have create a layout in AR invoice form  and applying the print sequences (ie 4 prints). Does any one know how to print preview fast. Just like in PLD.
    Thanks in advance
    Kamlesh Naware

    Hi,
    Basically Crystal report run with SQL statement, I would suggest to do well performance tuning on SQL query / Store Procedure.
    Structure your query in DBA manner that will make some how faster such as use ( inner join, less condition,...)..
    also if it simple query then use Command in Crystal report rather store Procedure..that make some how Faster your report.
    Thanks
    Kevin
    Edited by: Kevin Shah on May 27, 2011 4:21 PM

  • Preview a Crystal report prompted for the sa password

    Dear All,
    When our customer preview a Crystal report, we got a window prompted for the sa password. Even we type in a correct password, it still says wrong password.
    Only two user computer have this problem.
    How do I solve it?
    Regards,
    Karen

    I install Crystal Reports Designing Software on those computers which canu2019t preview reports.
    Then start the Crystal Reports design software to open the problem report.
    It usually asks to enter the column on the interface u201COLE DB (ADO) u2013 Connect Informationu201D.
    But it gets into the interface u201COLE DB (ADO) u2013 OLE DB Supplieru201D.
    I correct the setup and save the report.
    The problem is solved.
    I try many methods, but only this one can solve my problem.
    If you have another solution, please tell me, thanks!
    Regards,
    Karen

  • Can't Print preview draft crystal report.

    Print preview draft crystal report.
    Error message:
    One or more fields could not be found in the result set.
    Use verify database to update the report. Error in file POR20009. Rowset column could not be found.
    It occurs when trying to print (or preview) a DRAFT document with the report being a Crystal report.  No problems when the document is NOT a draft.  This happens on both SAP 8.8 PL16 and PL17.
    Updating the report and saving it again (as suggested by the error message) does not fix the problem.
    The DRAFT or u201CNORMALu201D document type uses the same Crystal report.   Something seems to be different when passing parameters from a Draft report?
    I can preview DRAFTS and NORMAL reports from the Crystal Editoru2019s preview pane.  This is only happening when launching from within SAP.
    Is this a bug?

    Hi Maeve,
    Can you please help by posting what exactly was the solution to this issue?
    Thanks in advance.
    Regards,
    Sanil

  • Error print preview a crystal report

    Hi,
    I have an issue where i log in as a user with admin rights and try to print preview a crystal report that was created. It prompts me to log into the database, when i do this gives me a login incorrect oracle error. But when i log in as administrator i am able to do this.

    Hi,
    Additional Info:
    CR 2008 SP3 is called by an application using .net. The Application passes a couple of parameters to the CR report. I'm able to preview the report. All the reports use the same set of parameters.
    Balaji K

  • Print Preview of crystal Report without add a document

    Dear All,
    Can i see the Print Preview of Crystal Report without add a document like PLD.
    i have developed a Crystal Report through Add Command by Passing a query.
    if anybody have  idea on this issue please  suggest me.
    Thanks.
    Shekhawat

    Hi Shekhawat....
    Through Query Crystal report it is not possible to view the Layout as Draft withou adding teh docs because Report fetch the details only when itys value goes to Database Table......
    So suggest to use SAP standard CR and modify as you want....
    Regards,
    Rahul

  • Problem while importing a Crystal Report in SAP Business One

    Hi Experts,
                        I am facing a problem while importing a Crystal Report in SAP Business One, it displaying an error  "No matching records found  'Queries' (OUQR) (ODBC -2028)  [Message 131-183]" , and there is no use of this table OUQR  in the Query.
    Kindly let  me know the solution.
    Regards
    Rahul Singh

    Hi Rhaul,
    i don't exactly know why this is a problem, but if your not on latest (881 p10) then upgrade and try again.
    Or as a workaround,
    try saveing from CR to SAP with the CR add-on. That usualy works better then the import.
    Regards,
    D

  • Error while previewing external crystal report in SAP B1

    Hi Experts,
    when i was previewing a Crystal report in sap business one i was facing an error as
    no matching records found 'Queries' (OUDR) (ODBC-2028) message[131-183]

    Hi Megganath..
    Check with this note
    http://service.sap.com/sap/support/notes/1532509
    1532509 - Cannot import Crystal Report template into SAP Business One
    Regards
    Kennedy

  • How to preview a Crystal Report in SAP ?

    Hi,
    I have an add-on for witch on the press of a button we need to preview a Crystal Report in SAP.  How do you do that ?

    Hi Marc,
    Please check below links.
    View Crystal Report from add-on | SCN
    Crystal Reports Integration For SAP Business One
    Hope this help
    Regards::::
    Atul Chakraborty

  • Problem to run the Crystal report inside from SAP B1 based on SQL views.

    Hello,
    I have a problem to run my Crystal report inside from SAP B1 which is based on SQL views.And the SQL views are stored in a separate database in SQL server.The error which i am getting is saying the the tablename does not exist.What i need to do in order to sort this problem.
    Great if somebody can help me to sort out this so that i can run my report based on SQL views stored on separate database other than SAP databases inside from SAP B1.
    Edited by: rozenagrawal on Apr 19, 2011 11:51 AM

    Try using a SQL synonym in your company database for the views outside the company database. I don't know if SBO will let you get away with it, but its worth a shot.
    If your company database is MyCompany and you have a view called MyView in Views database, assuming the view belongs to schema dbo, and you want the synonym to belong to dbo schema in your company database, run this:
    Use MyCompany
    go
    create synonym dbo.OutsiderView for
    Views.dbo.MyView
    go
    select * from OutsiderView
    The select statement should return the contents of MyView in the Views database while you are connected to your MyCompany database.
    For more info, see the Books Online for MSSQL on topic synonym.
    You will need to change your CR options to include displaying synonyms along with tables, views, etc. You may also need to grant select to B1 users.
    Edited by: Cindy Lange on Apr 21, 2011 4:00 PM

  • Problem of deployment of crystal report on development client

    Hi,
    We have a issue with running crystal report on our development server.
    After crystal report files (.rpt) is saved on the BOE server, when it
    is opened through InfoViewApp or OpenDocument, the connection to MySQL failed, the error message "Failed to open the connection"
    Both 32-bits and 64-bits MySQL ODBC connectors are installed on the machine and both system and user DSN has been added on the system. After setting the database configuration in the CmcApp, there is no connection problem when opening the rpt file directly with another crystal report development platform, data can be correctly drawn when previewing the report.
    Can you help to trouble shoot the issue ?
    Any help is highly appreciated.

    Hi Thomas
    If you are facing issue with your report only from the enterprise, I would suggest you to post you question in the Expert Forums » Business Objects » BusinessObjects Enterprise Administration.
    Regards
    Sourashree

  • SBO crashes when I Preview a Crystal Report after selecting the parametres

    Hi,
    I've been investigating for several days and I don't know what is the problem that I have. I have done a new report on Crystal Report, with an SQL for the principal report, and also I have a Subreport with another SQL.
    Using several parameters some with @TOKENS, and I lunch the report in Crystal Report and it works perfectly. But when I want to test if the rerport works in SAP B1, I can see the parameters and the @TOKENS works perfectly, but when I lunch the report, B1 crashes.
    I tried to import this report to B1, and everything seems correct, once I imported, I try to lunch and I get an error message that says Error when creating Crystal Report, and the message number is 410000064. This message is not on the Notes data bese.
    I have tested the performance problems that are in the Market place, but nothing about my problem, also when I check dependences I get and advertise "Warning - Data Source: The fields for table Comando, have changed on server TUPINAMBA03. Please verify your report." And as I read it seams that this problem should not affect in the preview, I have another report that I get the same message and It works in B1.
    SAP Business One Release 8.81 PL 05
    SQL Server 2005 SP2
    Crystal Report  13.1.3.1028
    Thanks
    Cristian Moreno

    I install Crystal Reports Designing Software on those computers which canu2019t preview reports.
    Then start the Crystal Reports design software to open the problem report.
    It usually asks to enter the column on the interface u201COLE DB (ADO) u2013 Connect Informationu201D.
    But it gets into the interface u201COLE DB (ADO) u2013 OLE DB Supplieru201D.
    I correct the setup and save the report.
    The problem is solved.
    I try many methods, but only this one can solve my problem.
    If you have another solution, please tell me, thanks!
    Regards,
    Karen

  • Problem of Deployment of crystal report on a x64-development client

    Hi,
    We have a issue with running crystal report on our development server (with OS = 64-bit Window Server 2003).
    After crystal report files (.rpt) is saved on the BOE server (32-bit), when it is opened through InfoViewApp or OpenDocument, the connection to MySQL failed, the error message "Failed to open the connection"
    Both 32-bits and 64-bits MySQL ODBC connectors are installed on the machine and both system and user DSN has been added on the system. After setting the database configuration in the CmcApp, there is no connection problem when opening the rpt file directly with another crystal report development platform, data can be correctly drawn when previewing the report.
    Can you help to trouble shoot the issue ?
    Any help is highly appreciated.

    Hi Thomas,
    I'm not sure it's related but we've run into other ODBC issues due to the 2 seperate REG keys where ODBC is managed in 64 bit windows.
    "Copy your Business Objects ODBC-related registry keys to the Win64 branch of the registry. Open regedit.exe and copy the CMS and Audit DSN keys (manually, by re-creating them -- takes 5-10 minutes) from HKEY_LOCAL_MACHINE\Software\ODBC\ODBC.INI\ to HKEY_LOCAL_MACHINE\Software\Wow6432Node\ODBC\ODBC.INI\ "
    If you aren't familiar with editing your windows registry or backing it up please open a message with support as any mistaked could potentially cause worse problems with your OS.
    Hope this helps...
    Regards,
    Tim

  • Performance problem with Filters of Crystal Report

    Hi,
    I have been facing this problem for a month now.
    Whenever I try to run a Crystal Report from Infoview it takes 5min or more to get the prompts screen
    but sometimes(mostly when i restart all servers) the filter screen appears real quick say 5 to 10 secs(is this quick?)
    I have no idea why this is happening! Is there an issue with the servers? or is this problem related to Crystal report?
    Please help. I tried googling for this problem but could not find anything that would help.
    Thanks
    Nilesh

    I am using a universe which uses a DSN to connect to the sql2k5 database. One thing I forgot to mention is that this is a clustered environment(with 2 servers) and the input/output file repository is set to a folder on a third server.
    Note: Even though the report filters take time to pop up, but the report runs very fast; doesnt take more than 5 seconds for a fairly complex report.
    Yesterday I did a trial install on a seperate server and the reports filters come up pretty fast.

Maybe you are looking for