Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all 3636 articles
Browse latest View live

Printing problem in production machine

$
0
0

Happy New year 2015

 

This below code is working fine in the development machine, when you press the button you get the report printed in the printer for the parameter provided.

 

Development machine:

Windows 8 64 bits

VS2013 Professional Update 4

Net Framework 4.5

Crystal Report 13

 

 

PrivateSub WebImgButPrintCustIssueRep_Click(sender AsObject, e As Infragistics.WebUI.WebDataInput.ButtonEventArgs) Handles WebImgButPrintCustIssueRep.Click

 

reportdocument AsNew CrystalDecisions.CrystalReports.Engine.ReportDocument()

reportdocument.Load(Server.MapPath("~/Reports/TransIssImgRepSelcontr.rpt"))

  reportdocument.Refresh()

reportdocument.SetParameterValue("Control#", TCtrControlToPrint.Text)

repordocument.PrintToPrinter(1,False, 0, 0)

 

 

 

EndSub

 

 

Production Machine:

Windows Server 2012

 

 

The application works fine after deployment, but when you press on the button to print the report directly to the printer, doesn't give any error, doesn't do nothing visible but doesn't print.

 

 

I HOPE YOU CAN HELP ME, I am having this problem since some months ago, I am researching and reading everything I found, no luck.

 

Thanks.

 

Manolo Garcia

garciamq@ono.com


Page size bug in visual studio 2013

$
0
0

I have Windows 7 32 bit, Visual Studio 2013 Update 5, Crystal Reports v.13.0.12.

I upgraded my program from VS2008 to VS 2013, and the crystal reports also.

In the old version of the program I was printing to 100mm x 80mm barcode label, and would have the same print in diferent printers model.

Now with the upgrade, my print is the same, but in my customer place the print is smaller.

How to fix this?

.Net Vb 2.0 Crystal Report migration to x64 server

$
0
0

Hi,

 

We use crystal report for taking report direct to print with some barcode. We used to program in 2003 server 32 bit.

Then we migrate it to 64 bit but when we try to print report it gives error. I attached error. It says 'UFL U2lbcp.dll that implements

this function missing.'

 

I tried to register this dll into 64 bit server but i did not figure out error. I searched every action and tried every suggestion. Bu I have not

figured out yet. Please help me this is very important for me.

 

Best Regards.

SP12: XP Pro Not Supported

Crystal Reports 2008 SP5 & SP6 download help

Crystal Reports XI with VS2010

$
0
0

Hi,

 

I have designed a reporting Crystal Report XI as normal. I have then come to do the coding to print the report in Visual Studio and I can only find DotNet version 2.0 of the dlls I require. How do I get it to work for DotNet 4.0?

 

Many Thanks,

 

Roger

Run Crystal Reports on client machine without install runtime package?

$
0
0

My C# application using Crystal Reports. I would like to run my application on client machine. After googling, I know that client machine must install Crystal Reports runtime package. Do I have any other solution? Can I attach Crystal Reports dll files in my running folder to solve this?

 

 

 

Thank you in advance and Happy New Year 2015.

Internet Explorer 11 Adobe Acrobat Reader Print issue.

$
0
0

Hello,

   We have a web site that display reports through the Crystal Report Viewer, when we click on the print button of the viewer, the Print Dialog of Adobe Acrobat is display and we can print the report. We have new users that are using IE11 and instead of having the Adobe Printe Dialog, the "Print To PDF" dialog is displayed forcing the user to export the report in PDF then do the print. I was able to replicate the issue with IE11 and Adobe Acrobat X & XI and with Crystal Reports for VS SP8 & SP12.

 

   As of now the only workaround I have found to fix the issues is to add the following line in the Report Viewer page:

          <meta http-equiv="X-UA-Compatible" content="IE=10" />    

 

  I thought that Crystal Reports for Visual Studio since SP8 was fully compatible with IE11? Is it normal that I need to add the compatible tag?

 

Thank you.

Charles.


Dynamic list of values in Crystal report

$
0
0

Hi,

 

I designed one crystal report with parameter type for list of values are static and dynamic.

 

Staic Type(City names are manually entered by me at design time)

Dynamic Type( I created a link for City parameter with database, so it should display whatever data available in the database for that particular field)

 

For static I can fetch the data. but For dynamic list of values, it should fetch the value from Database.

 

Is there any APIs available to identify whether it is static or dynamic?

 

How to handle this scenario using CR API's?

 

Please share your thoughts on this...

Object reference not set to an instance of an object?

$
0
0

Post Author: stevescotthome

 

CA Forum: .NET

 

I've created a DotNetNuke module to show crystal reports on my dev machine, everything is working great, however when I try and copy the code over to our webserver I get the error listed below.  CR10 is definatly installed on the box, and I can load the external report fine through it. 

I've tried:

 

Installing the "server install" package from this site.

Creating a virtual directory on the server IIS called "crystalreportviewers10" to match what I have on the dev box (the same directory/files exists on the server)

Assembies are the same from my Dev machine and on the server web.config

I have no idea where to go from here aside from installing Visual Studio on the server (which I really shouldnt do)

Any help would be great,

Steve

-


InnerException: Object reference not set to an instance of an object.FileName: FileLineNumber: 0FileColumnNumber: 0Method: CrystalDecisions.Web.CrystalReportViewer.OnPreRenderStackTrace: Message: DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at CrystalDecisions.Web.CrystalReportViewer.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

print crystal report in asp.net from client?

$
0
0

print crystal report in asp.net from client?

i can print from server machine but i can't from client

How to set currecy symbol as per server or local system culture

$
0
0

Dear All,

 

We have currency field for which we have set system default currency format in Number tab of Format Object of crystal report but still it is showing the $ symbol ?

 

What would be the solution ? Any idea , we are using VS 2010 Crystal Report In Build.

 

 

Thanking you,

Miral Shah

Unable to open the connection

$
0
0


Hi,

 

I am migrating a project from VS2005 to VS2012. The project is using Crystal Report. We have downloaded and installed Business Component for VS2012.

 

However, While viewing reports, it is giving error "Unable to open connection". Database is SQL Server 2000

 

Kinldy advise.

 

 

Thanks in advance,

Ramprosad

Crystal Reports 12.0.0.683 null tooltip causes printer error?

$
0
0

Hi,

   I am using Crystal Reports with a C# WPF app to print formatted guest information.  Every time the guest changes, I set some parameter values on the document reset the ReportSource to the newly refreshed document, and print it out.

   The problem is that randomly, after anywhere from 4 to 30 printings, I get these errors:

 

System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='<null>' BindingExpression:Path=ToolTip; DataItem='Button' (Name=''); target element is 'Button' (Name=''); target property is 'Name' (type 'String')

System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=.; DataItem=null; target element is 'ImageBrush' (HashCode=44779572); target property is 'ImageSource' (type 'ImageSource')

System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='<null>' BindingExpression:Path=Header; DataItem='TreeViewItem' (Name=''); target element is 'TreeViewItem' (Name=''); target property is 'Name' (type 'String')

 

   Though these errors are reported in the debug stream, they don't halt the program.  The strange thing is that directly afterward, the printer reports that it is out of paper even though it is not.  Pressing the printer's continue button fixes the issue, but the printer is locked away in a cabinet and requires an employee to intercede.

 

   I've found a similar problem in the forum (WPF Viewer 13.0.4 to 13.0.5 Differences ), which has a workaround that I'm happy to use, but it is with a later version which I can't switch to, and the object model seems to have changed.

 

  Any help for me?  Thanks in advance.

Having runtime issues with CRVS2010 on Server 2012 r2 Deployment, I must be missing something

$
0
0

I have developed a .Net 4.0 Web Service that uses Crystal Reports 13 SP12 redistributable runtime to return reports rendered as HTML to callers of the service.  The Web Service is hosted in IIS 8.5 on Windows Server 2012 r2.  Report source files are developed in SAP Crystal Reports 2013.

 

Report parameters are passed in the service calls to the Web Service on the server where the *.rpt files are also hosted.  The service uses the CR libraries to open the rpt file and set appropriate DB connection info, and parameters values, then generates the report to a temp folder accessible by the service, then integrates html and image into a single html response to the caller.

 

I understand that Crystal is using other temporary folder locations for internal processing when generating (exporting) a report, I can see this in ProcMon on the server when the service call is made.  My problem is that no report is generated though I see tracing in Procmon that indicates a temp file is created in the temp folder, but I never physically get the file to process and return in the service call. 

 

I think I've got the right runtime, platform, and report editor based on information here, http://scn.sap.com/community/crystal-reports-for-visual-studio/blog/2013/06/28/how-do-you-spell-confussion-cr-for-vs-crystal-2011-bi-4x-and-the-net-sdks, but perhaps not.

 

The Web Service with corresponding Crystal Reports 13 SP12 runtime redistributable works perfectly on Windows Server 2008 r2.  We are deploying both CR10.5 and CR 13 SP12.

 

These are the assembly references in the Web Service project:

CrystalDecisions.CrystalReports.Engine

CrystalDecisions.ReportSource

CrystalDecisions.Shared

CrystalDecisions.Web



PTC in SAP

$
0
0

PTC ... I have heard this acronym can anyone plz give me some basic insights?

Visual Studio 2013 / Crystal Reports

$
0
0

We are a long time user of Crystal Reports.  Now we've upgraded from Visual Studio 2010 to 2013.  VS complains that it cannot find Crystal Reports when the DLLs are included in the project references. 

 

Part of the reason for upgrading was to utilize Microsoft Framework 4.5.1 which cannot be used in the 2010 version of Visual Studios.

 

What options are open to me?

端末によってCrystalReportsの出力結果が異なる現象について

$
0
0

お世話になっております。

 

CrystalReportsで作成した帳票を.NETアプリケーションからPDF出力できる機能を開発しております。

VisualStudio2008でCrystalReports(.rpt)ファイルを作成するにあたり、プリンタ設定でサーバに追加したプリンタを使用して印刷するようにしましたが、アプリケーションを実行するクライアント端末によって、帳票の出力結果が異なる現象が発生します。

【クライアント】

Windows7 , InternetExplorer9

 

【サーバ】

Windows2008Server

 

正常にレイアウト通りに帳票出力できる端末は常に正常動作をするのですが、レイアウトが崩れる端末は正常に出力されることもあれば、異なる出力結果となることもあり、動作が安定しません。クライアント側で使用しているプリンタは、共にCanonです。(型番は異なります)

 

原因と考えられることがあれば、ご教授頂きたく、よろしくお願い致します。

generated javascript error bobj.crv.stateManager.setComponentState

$
0
0

I'm unable to open reports in my Visual Studio 2010 project.  When loading the report, the code breaks on the following line of generated javascript:

 

error:bobj.crv.stateManager.setComponentState('ctl00_ContentPlaceHolder_PageBody_CrystalReportViewer_WarrantRequest__UI',eval('('+document.getElementById('__CRYSTALSTATEctl00$ContentPlaceHolder_PageBody$CrystalReportViewer_WarrantRequest').value+')'));

 

I'm using runtime engine Version 13.0.2000.0.  I have set web.config according to the directions in the developer guide and on this blog:

 

<configSections>

    <sectionGroup name="businessObjects">

      <sectionGroup name="crystalReports">

        <section name="printControl" type="System.Configuration.NameValueSectionHandler"/>

        <section name="crystalReportViewer" type="System.Configuration.NameValueSectionHandler"/>

        <section name="rptBuildProvider" type="CrystalDecisions.Shared.RptBuildProviderHandler, CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, Custom=null" />

        <!--<section name="rptBuildProvider" type="System.Configuration.NameValueSectionHandler"/>-->

      </sectionGroup>

    </sectionGroup>

 

    <sectionGroup name="crystalDecisions">

      <section name="serverFileReportManager" type="System.Configuration.NameValueSectionHandler"/>

    </sectionGroup>

 

  </configSections>

 

  <businessObjects>

    <crystalReports>

      <crystalReportViewer>

        <add key="documentView" value="weblayout"/>

        <add key="EnableTextClipping" value="true"/>

        <add key="maxNumberListOfValues" value="50"/>

        <add key="UseBrowserLocale" value="true"/>

        <add key="ResourceUri" value="~/crystalreportviewers13" />

             <!--<add key="resourceURI" value="C:\Windows\Microsoft.NET\Framework\v4.0.30319\ASP.NETClientFiles\crystalreportviewers13"/>-->

      </crystalReportViewer>

      <rptBuildProvider>

        <add embedRptInResource="true" />

      </rptBuildProvider>

    </crystalReports>

  </businessObjects>

 

  <crystalDecisions>

    <serverFileReportManager>

      <add key="rootDirectory" value="c:\inetpub\wwwroot"/>

    </serverFileReportManager>

  </crystalDecisions>


I added the crystalreportviewers13 folder to the project under aspnet_client / system_web / 4_0_30319 / crystalreportviewers13.  (This was done automatically when I installed the runtime engine.)

 

I am running in Windows7 . .NET Framework 4. The build is for AnyCPU.

 

Thanks for any assistance!

Sub reports will not work in VS2010

$
0
0

I have installed crystal reports for VS2010 (EXE) package from SAP web site.

I am using VS2010 for my application.

 

My VB.NEt app was originally developed in VS2003 several years ago. The app has about 150 crystal reports, which ran fine on .NET 1.1 without a problem, My company decided to upgrade the project to .NET4.0 recently.

 

I have migrated all the code and the reports to .NET 4.0. I can build and compile fine. When I launch the app, it runs fine also.

I have been able to open crystal reports which dO NOT HAVE SUB REPORTS embedded in them. They seem fine.

 

Every report that has a sub report causes VS2010 to crash. In the debug mode, the code fails when i try to set the report source.

 

I get the below error.

{"Could not load file or assembly 'file:///C:
Program Files
SAP BusinessObjects
Crystal Reports for .NET Framework 4.0
Common
SAP BusinessObjects Enterprise XI 4.0
win32_x86
dotnet1
crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified.":"file:///C:
Program Files
SAP BusinessObjects
Crystal Reports for .NET Framework 4.0
Common
SAP BusinessObjects Enterprise XI 4.0
win32_x86
dotnet1
crdb_adoplus.dll"}

 

I have changed my app config to the folliowing.

<startup useLegacyV2RunTimeActivationPolicy="true">

    <supportedRuntime version="v4.0"/>

  </startup>

 

Below is the code snippet that Crystal report crashes. All my reports uses ADO.NET XML files.  I create an xml file, specify the column names in the xml file, set the report source to a dataset that has a table containing the same name as the XML root element and the same columns.

 

Public Sub LoadForm11_Acct(ByRef Ds1 As DataSet, ByRef Ds2 As DataSet, _

                                    ByRef Ds3 As DataSet, ByVal sYear As Int16)

 

 

        crRptDoc = New rptAcctForm11

 

        Dim sSub1 As CrystalDecisions.CrystalReports.Engine.ReportDocument

        Dim sSub2 As CrystalDecisions.CrystalReports.Engine.ReportDocument

 

        Dim sTaxYear As CrystalDecisions.CrystalReports.Engine.TextObject = _

               CType(crRptDoc.ReportDefinition.ReportObjects.Item("txtYear"),  _

               CrystalDecisions.CrystalReports.Engine.TextObject)

 

        sTaxYear.Text = sYear

 

'CRASHES RIGHT AT THE BELOW LINE

        crRptDoc.SetDataSource(Ds1)

 

 

        sSub1 = crRptDoc.OpenSubreport("rptP11-Vehicles.rpt")

        sSub2 = crRptDoc.OpenSubreport("rptVehicleListing.rpt")

 

 

        sSub1.SetDataSource(Ds2)

        sSub2.SetDataSource(Ds3)

 

 

 

        Me.Text = "Assessor's Personal Book For Individual Account"

        Me.crPA.ReportSource = crRptDoc

 

    End Sub

 

 

Any help would be appreciated.

Viewing all 3636 articles
Browse latest View live


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