Quantcast
Viewing all 2556 articles
Browse latest View live

crystal report 13.0.2 document.ExportToStream html40 file not found issue

when export to html, it seems like the html file is exported suessfully but when it is reading the file back, it said the file is not found. but by opening up the temp folder, the file is there but with the .html extension instead of the reported missing file with the .htm extension. bug?


Failed to load database information. Error in {GUID}.rpt

Hi


I have a C# windows service that load a rpt file and export it to PDF

I am required to use XML as data source for the rpt file, and in the IDE of CR 2013 it always works fine via local XML file, and also I create a http/https pages which returns a XML stream, it still works,  preview fine.

And then I debug into my unit test project, load the rpt file, set the necessary parameters, and at last call the ReportDocument.Export(), the PDF was generated successfully.

But when I deploy the windows service in my local machine, it always throw out an exception with the error message of “Failed to load database information. Error in {GUID}.rpt” at ReportDocument.Export().

 

Here is the environment of my local machine:

  • Windows 7 (64 bit)
  • NET framework 4.0 / VS2010 build with “Any CPU”
  • CR2013 with the latest run-time packages for VS
  • I also have crdb_xml.dll in both of the following paths:

C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64

C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86

 

I doubt that I missed something in my environment, is there any suggestions? Thanks a lot!

Failed to load database information. Error in File ReportName {E420E88A-5947-4925-844E-75E6311D3EB3}.rpt: Failed to load database information.

Hi All,

We've been running CR for VS2010 for a number of years in our web app without any issues. Using the same code we recently upgraded our application to support x64 and we have run into this error on our QA servers:

 

Failed to load database information. Error in File ReportName{Guid}.rpt. Failed to load database information.

 

Here's are server setup:

Windows Server 2012 Datacenter x64

SAP Crystal Reports Runtime Engine for .Net Framework (64-bit)

IIS 8

 

Database Server

Oracle 12c

 

Interestingly, Crystal Reports works fine on our dev machines and it also works on our dev machines if I connect to the QA Database server directly. So I've ruled out any Oracle issues.

 

I believe the permissions are set up correctly for CR to run, but I'd like to know what permission CR needs to run. I can't find a definite answer reading the forum posts or on the WIKI.

 

I've used Process Monitor and there seems to be some permission issues with the uf12manager.DLL. See attached document.

 

I'm really stuck here and any help is appreciated.

 

Thanks!

Print Issue in VS 2010 Crystal Report Version 13.0.1.220

Hi Friends,

I am new user for SAP crystal report,

can any one help me for

 

Print Issue in VS 2010 Crystal Report Version 13.0.1.220

HOW WE FILL CR WITH TABLEADAPTER INSTEDS OF DATAADAPTER

HELLO DEAR, CAN YOU HELP ME, I WANT FILL CRYSTAL REPORT WITH TABLEADAPTER IN STED OF DATAADAPTER IN VB 2008, WITH DATAADAPER IT DO IT NORMAILY IT WORKS FINE, BUT WHEN I CREATE DATATABLE WITH UNION QUERY (FOR UNPIVOT DATA) THEN IT NOT SHOW ALL DATA (LIKE WHICH DATA I UNPIVOT), SAME HAPPEND IN REPORT.RDLS WHEN I TRY WITH DATAADAPTER, BUT IT WORK WITH TABLEADAPTER IN REPORT.RDLS, SO I THINK THAT I WILL TRY WITH TABLEADAPTER INSTED OF DATAADAPTE, MY CODE AS BELOW WHICH I USE WITH DATAADAPTER,

Imports System.Data

Imports System.Data.OleDb

Imports WindowsApplication1.OledbTableAdapter

Imports WindowsApplication1.MasterDataSetTableAdapters

 

Public Class OledbTableAdapter

 

End Class

Module Module1

    Public Cnn As New OleDbConnection

    Public Cmd As New OleDbCommand()

    Public Dr As OleDbDataReader

    Public Mcmd As New OleDbCommand()

    Public mDr As OleDbDataReader

    Dim myAdapter As New System.Data.SqlClient.SqlDataAdapter

 

    Public data As New Data.DataSet

    Public ds As New DataSet

    Public CusSearch As String 'Search Customer

    Public da As New OleDbDataAdapter

    Public DTT As New MPatient1TableAdapter

    Public dt As New DataTable

 

    Public conn As New OleDbConnection("provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\MASTER.accdb")

 

    Public adp As New OleDbDataAdapter(Cmd)

 

    Public Sub OpenConnect()

        Try

            Cmd.Connection = conn

            conn.Open()

            Cmd.CommandType = CommandType.Text

            Mcmd.Connection = conn

            conn.Open()

            Mcmd.CommandType = CommandType.Text

 

        Catch ex As Exception

            ' MsgBox(ex.Message)

        End Try

Public Class Form2

 

    Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

 

    End Sub

 

    Private Sub CrystalReportViewer1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CrystalReportViewer1.Load

 

        Dim report As New CrystalReport1

        dt.Clear()

        If form1.TextBox3.Text <> "" Then

            Cmd.CommandText = "Select * from  [Final_Report] where LabNo ='" & form1.TextBox3.Text & "'"

            OpenConnect()

            da.SelectCommand = Cmd

            da.Fill(dt)

            report.SetDataSource(dt)

            CrystalReportViewer1.ReportSource = report

            CrystalReportViewer1.Show()

        End If

    End Sub

 

End Class

How to force larger font size for PDFs with CR 13

There is flag in the windows registry that can be set to force CR to not shrink the font when converting to a PDF.

 

Similar discussion:

http://scn.sap.com/thread/3422863

 

All I need to know is where is this flag set in the newer version, 13?

 

Also, I am wondering if there is a phone to call help desk for CR instead of posting discussion questions? Also is there a place were I can download the documentation that would also contain the answer to the question about setting forcing a larger font size?

Trouble connecting to RAS from Server 2012

http://devlibrary.businessobjects.com/businessobjectsxi/en/en/RAS_SDK/rassdk_net_doc/doc/rassdk_net_doc/html/BindingScenarios16.htmlHello

 

Hello All,

 

I have been migrating a web application from Server 2003 to Server 2012.  The only part that does not seem to work correctly is the Crystal Reports.  I have Crystal Reports 10.  When I try to create a session and pull down a report, the web application crashes and does not give me an error.  I have tried stepping through the debugger and looking at the event logs and I am not gleaning any useful information.  Oddly enough when I pull a report from our RAS and put it on the new web server and make a web form that loads it from locally (embedded) it works, but point it to RAS and it crashes every time.  The code that pulled from RAS worked just fine on our 2003 server.  The original developer appears to have used the code at above link to load reports from RAS.

 

Is connecting to RAS supported in Crystal 10, IIS 8, and Sever 2012?

Is there a special permission that needs to be set up on the RAS server or in the Server 2012 web server?

Is there any reason I should change the code or anything else I need to install on the Server 2012 web server beyond installing Crystal 10?

 

Any tips for fixing or troubleshooting this?  I am getting close to scrapping the RAS server though I really don't want to do that.

Crystal Report slow to print VS2012 VB


I notice another discussion where slow print was mentioned.  Its suggestion was to use Crystal ReportsAppServer but its code was more than I need and I did not pick out what was needed for my app.   I looked around but cannot see much about how the ReportAppServewr is used.

Currently I have a little routine that I can call to print, passing in the query and report name:

 

Dim ds AsNewDataSet

Dim da = NewSqlDataAdapter(qry, login.conStr)

da.fill(ds)
Dim Rpt AsNew CrystalDecisions.CrystalReports.Engine.ReportDocument()

Rpt.Load(Path & reportname)

Rpt.Refresh

Rpt.SetDataSource(ds.tables(0))

Rpt.PrintToPrinter(1,true,0,0)

 

Would changing this to use the ReportsAppServer make the print work faster?  And the big question how do I do it?

 

Peter


Viewing Crystal Report 2011 sdk integration with portal

Hi Everyone,

 

I'm in process of migrating the crystal report 2008 to 2011 and migrating the DB SQL Server to Oracle 11i.

Currently the reports are accessed through by portal by an ODBC connection. In this case all servers (App, DB & .RPT) are placed in single place so there could not be any problem in integration i guess.

 

Now, the customer wants to view the report from the portal with the source as universe. Here is my question how I can achieve this. Since the source is uinvers definitely it'll be in BO Repository how i can integrate with the asp page portal to view the report either by placing the .rpt file in the public folder or by accessing BO repository?

 

Can anybody help in this regard?

 

Thanks in advance

Crystal report prints boxes instead of Fonts Can AnyOne help me???

Hi All,

Pls help me

 

Crystal report prints boxes instead of Fonts

Crystal Report Run but does't display in crystalreportviewer

We have a web app that runs CR reports. When a report runs locally crystal report display in report viewer. if i host app to server the crystal report not display in viewer(Forever to load).

 

The project is in VS2010, C#, using CR Version=13.0.2000.0  for VS2010, and .net 4.0. However, even if it does resolve the issue, I can't imagine telling customers they need to jump through those hoops simply to update to the latest release of our reports.

 

Any suggestions? Additional information needed?

Application stops working - have to reboot server

We are running vs2005 and vs2008 on a windows 2003 server. We have some applications that have embedded crystal reports (11.5 XI and Cr2008).

 

From time to time crystal reports is not working ie is not displaying the reports. We are passing parameter to the reports and for most part it works fine.

 

Suddenly nothing is being displayed when user runs the app and we have to reboot the server, then things are working again, till next time.

 

Wonder why this happens and is there something I should do within the application to prevent this. Could there be something that is filling up somewhere and at one point needs to be cleared? Thank you.

 

Here is sample code:

 

Try

            If Session("myCrystalReport1") Is Nothing Then

                BatchGuid = "{" + Session("BatchGuid") + "}"

                myCrystalReport1.Close()

                Dim myPath As String = (Server.MapPath("ProjectDailyReport.rpt"))

                myCrystalReport1.Load(myPath)

                myCrystalReport1.SetDatabaseLogon(System.Configuration.ConfigurationManager.AppSettings("CrystalReport_UserId"), System.Configuration.ConfigurationManager.AppSettings("CrystalReport_Password"))

                myCrystalReport1.SetParameterValue("BatchGuid", BatchGuid)

                CrystalReportViewer1.ReportSource = myCrystalReport1

                Session("myCrystalReport1") = myCrystalReport1

                CrystalReportViewer1.SeparatePages = True

                myCrystalReport1.DataSourceConnections.Clear()

            Else

                myCrystalReport1 = Session("myCrystalReport1")

                CrystalReportViewer1.ReportSource = myCrystalReport1

            End If

 

Protected Sub Page_Unload(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Unload

        Try
            myCrystalReport1.Close()
            myCrystalReport1.Dispose()
        Catch ex As Exception
            Message = ex.ToString
            Message = "Error closing Crystal report"
            ASPNET_MsgBox(Message)
        Finally
        End Try

    End Sub

When setting ForceLargerFonts flag in the windows registry, the Text Objects are not wrapping text correctly.

Image may be NSFW.
Clik here to view.
Problem.png

I have set the ForceLargerFonts to support existing reports in CR 13. The problem with this is that now text objects with the Can Grow checkbox set are now cutting the farthest right character in half.

 

The ForceLargerFonts flag is located here:

1.Go and Set  HKEY_LOCAL_MACHINE\Software\SAP BussinessObjects\Crystal Report for .Net Framework 4.0\Crystal Report\Export\pdf and add DWORD ForceLargerFonts and set  value 1

 

I need to know what is causing this issue and how to resolve it.

print page to page

Hello

 

 

I am using visual studio 10 with crystal report13, I have a report with two details, the result of each print are two sheets,

 

 

The problem is that I have 26,000 records, and the details (B) result in 52,000 records that are displayed correctly in the preview, but when I click print the total pages displayed is 32,000! should be 52,000

CR 2008 on Server 2008 R2 vs Windows Server 2003


I have posted a similar question before but have not beeen able to come up with a solution.

 

We recently purchased cr2008 designer sp5 and installed it on server 2008 r2 and server 2003. We have web pages where CR is embedded in the code showing the report. This works fine on server 2003, also works fine on development desktop BUT does not work on server 2008 r2.

 

The application works but when time to show the CR itsself there is just a blank page with no error messages. I have replcated the code both using vs2005 and vs2008 and none of them are working when it comes to show report.

 

IIS is configured to run 32bit mode and classic (on server 2008 r2). Applications are comiled with x86 target.

 

We also have windows applications (without user interfaces) that loops through data base and saves crystal report as .pdf documents to folders to folders and they do work either.

 

I have been working on this for the last couple fof weeks and I am clueless.

 

Any ideas where to start looking and what to try? Any any help will be greatly appreciated. Thank you.


Can a crystal report be drilled down into using Crystal Decisions in VB.Net?

Hi,

 

I have a question regarding Crystal Decisions. I have written a program in VB.Net to automate the generation of our weekly sales report, which is scheduled using MS-Scheduler, and email those reports to the specified people in the distribution list. The program accesses the crystal report files at a central location on the company network, passes all the required parameters, exports the files to pdf, saves it on a network drive and also emails them. However, I am not able to generate the reports which are generated by drilling down into the main sales report. The first level gives the sales for all the territories and the second level gives all the sales by all the brokers associated to the specific territory which is drilled down into. I want to do this for all the territories listed in the top level report. Does Crystal Decision provide this functionality in the API? If yes, then what functions do I need to use? I am using a ReportDocument object from the CrystalDecisions.CrystalReports.Engine Namespace to generate the report.


Thanks,

Anagh

Not able to save the rpt file in crystal reports for visual studio 2012

Hi There,

 

     I am not able to save the crystal report file (rpt) file in visual studio 2012(professional).

a) Drag and drop is not working

When I drag and drop the rpt file from solution explore it is not opening it properly, it pastes the path the rpt file in the existing document.

     To work around is File-> open file->browse rpt file and open it ->

      opens rpt file in visual studio.

 

b) Not able to update changes to rpt file

After opening the rpt file

right click -> Edit text object->

Make some changes

->save it

->close it

then open it

My changes are gone, nothing there, it is same as before what I saw at start.

 

Please help me

 

Thank in Advance,

 

Regards,

 

A. K. Bharath

VS2012 PrintControl

Dear all,

 

I am trying to deploy the crystal report 13 for my VS2012 Web project. But I was found that a problem is when I set the printmode to ActiveX. The IE haven't alert any message to user for install the PrintControl. What is the problem?

 

Thanks

 

Steven

Crystal runtime 13.0.5 64 bit Access Violation Errors

Dear Forum

 

We are using Crystal runtime 13.0.5 64 bit but we are receiving Access Violation Errors in our live environment which is a website hosted on Windows Server 2008 servers.

 

We are attempting to use the Windows Debug Diag 2.0 tool to find more data about the error.

 

The tool requires the Crystal symbol files:

WARNING - DebugDiag was not able to locate debug symbols for \crpe32.dll, so the information below may be incomplete.

In WER56C1.tmp.hdmp the assembly instruction at crpe32+3ac12f in C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\crpe32.dll has caused an access violation exception (0xC0000005) when trying to read from memory location 0x00000000 on thread 54

 

I understand from reading the SAP web site and forums that these files are not publically available on your web sites

 

Please can these be provided so we can continue debugging this error.

 

With Kind Regards

 

 

Paul Marks

CrystalReportViewer13 printing problems

Hi,

 

Recently I tried to upgrade my asp.net app that was using crystal report viewer 10 to 13 ..I have successfully deployed the ActiveX Control for printing on client machines. In client machines the preview windows looks perfect but when printing the problem comes up and in some devices (laser, injection printers)printings looks just fine and dot matrix devices it's looks reduced to half of the page.

 

Some thing I have noticed it's that the scaling options of printing dialog are disabled.

 

regards,

 

 

Kadel

Viewing all 2556 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>