Quantcast
Channel: SCN : Unanswered Discussions - SAP Crystal Reports, version for Visual Studio
Viewing all 2556 articles
Browse latest View live

Change of text field height in Crystal Report 2013

$
0
0

I migrate from Visual Studio 2003+Crystal Reports for Visual Studio .NET to Visual Studio 2012+SAP Crystal Report 2013.

When running the migrated program, The lower part of the Text is not visible.

Program is changing text field's font size at runtime. Text field's height is expanding, when run at vs2003. But vs2012 is not.

Please tell me the reason and how to solve the problem.

 

old environment:

Windows XP SP3

.Net Framework 1.1

Visual Studio 2003

Crystal Reports for Visual Studio .NET

 

new environment:

Windows7 SP1

.Net Framework 4.5

Visual Studio 2012

SAP Crystal Reports 2013 14.1.1.1036

 

sample code:

' MyReportClass is CrystalDecisions.CrystalReports.Engine.ReportClass

Dim report As New MyReportClass

 

' get FieldObject

Dim field As CrystalDecisions.CrystalReports.Engine.FieldObject

field = report.ReportDefinition.ReportObjects("textField1")

 

Debug.WriteLine(field.Height)    ' design time height=208twip

 

' change font size at runtime from 10pt to 14pt

Dim font As New System.Drawing.Font(field.Font.FontFamily, 14)

field.ApplyFont(font)

 

Debug.WriteLine(field.Height)    ' vs2003 height=280twip, vs2012 height=208twip

 

' set DataSource

Dim dt As New DataTable

dt.Columns.Add("textField1")

dt.Rows.Add("123456789")

report.SetDataSource(dt)

 

' viewer is CrystalReportViewer

viewer.ReportSource = report


'Reuse' the .tmp and .rpt files.

$
0
0

I've got an issue where I need to scan through left over .rpt and .tmp files.

These files are left over because (we assume) the export to the printer has failed in such a way that Dispose or Close wasn't called.

 

We can't instruct the user to print the report again, because printing is happening automatically and the user isn't aware of the result (printed yes or no).

The printouts are picked up by another department that is unaware of how many reports should have been printed.

Can the report be printed again using the .rpt and or .tmp?

 

If not, can we distill the parameters that the report export was started with from either the .rpt or .tmp file?

Thank you for your effort.

Navigation Previous, Next not working

$
0
0

Navigation - Go to Previous Page and Go to Next Page are not working properly. It works only for page 1 and 2.

 

Using SAP Crystal Reports, Developer Version for Microsoft Visual Studio version 13.0.8.1216.

Crystal Reports Activex viewer has been used to display reports.

 

Is this issue fixed any other version

 

--Jagannath

How to set a report culture for number and date

$
0
0

Hi,

 

Is there a way to change the report locale for the number and date?

 

I've tried using both CrystalDecisions.Share.SharedUtils.RequestLCID and CrystalReportViewer.SetProductLocale and neither work

 

The only one that work is to use the Thread.Culture. But that also change the application culture, not just the report.

 

Anyone have a solution?

 

Thank

Next Page button won't go past page 2 of report

$
0
0

We've recently upgraded our crystal report viewer from 11.5 to v13.0.8. 

 

But we've noticed that any of the reports that are more than 2 pages, when you click on the next page icon, it goes to page two.  If you click the next page button again, it stays and reloads page 2.

 

If you type in the box page 5, the viewer goes to page 5 correctly.  You then hit next page button and it goes to page 2.

 

Is this a known issue? Is there a work around?

Crystal Reports Viewer (for web) next page does not go past page 2

$
0
0

I've got a website which was running Crystal Reports XI R2 (11.5) reports.  Everything was working fine, other than it's getting a bit old.  Tried to update to this version SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads, and the page works and displays the reports.  BUT I have a report with about 30 pages in it, and when I click on next page, it only ever goes to page 2.  I can enter page 5 into the current page text box and it will load page five just fine.  I then click on next page, and it loads page 2.

 

Is there a known issue with CrystalReportsViewer for web, doing this?  Or did I mess something up?

 

The HTML code is as follows


  <asp:Panel ID="reportPanel" runat="server">

    <CR:CRYSTALREPORTVIEWER id="crystalReportsWebViewer" runat="server" Width="350px" Height="50px" BorderColor="Transparent"

             GroupTreeStyle-BorderColor="Transparent" GroupTreeStyle-BorderStyle="Ridge" GroupTreeStyle-BorderWidth="2px"

             HasCrystalLogo="False" HasToggleGroupTreeButton="False" />

  </asp:Panel>

 

The CR tagPrefix is pointing at CrystalDecisions.Web v 13.0.2000.0.

 

I originally posted this in SAP Crystal Reports, but they told me to post it here instead.  Let me know if any more information/clarification is needed.

Thanks

CR 13 | .Net 4.0 | Web Farm | Dynamic Image | Shared Path | Query

$
0
0

Hello Everyone,

 

I'm  using Crystal Report runtime version 13.0.2 for .Net 4.0 & I'm facing the same issue as discussed in the http://scn.sap.com/thread/3158679", where in, the user was able to solve the image generation issue with Web farm by making registry changes and using common file share.

I'm trying to replicate the fix and I'm not successful yet on my local machine, I created the CrystalImageDir under  HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Report Application Server\Viewer (not sure is this the right path for the version im using) and I'm the admin of my machine so I created a folder C:\Mytemp and set it as the image path in Registry but, I don't see anything created in C:\Mytemp and I believe CR is still creating the images in Temp folder. I used ProcMon to monitor registry calls, to my surprise, I don't find any registry calls to SAP Business object path at all, so please suggest me what else I can do. Your help is much appreciated.

 

Thanks,

Rajasimhan.V
P.S. I've not hosted the application in IIS and I'm simply debugging reports in Visual Studio

Client Side Print

$
0
0

hi,

 

I am new to asp.net,i created the one crystal report and export to PDF,save the pdf file in the server and show corresponding pdf to popup.but clent dont want to preview the file.If i click the PRINT button automatically print out will comes out in printer.

 

please help me how to do.


Could not load file or assembly 'log4net,

$
0
0

Hi!

I have an application which works fine on local host but gives me the below error when hosted on server. Have spent a lot of time cracking the same. Could anyone please help basis their experience.

 

Server Error in '/' Application.


Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.


Regards,

PD


Print the PDF fille on Client side

$
0
0

Hi,

 

i created the PDF file on server if client click print button the PDF file print on the client side.

 

Is it possible to do that. if you do Please help me

Is exporting to MHTML programmatically possible?

$
0
0

I'm using Crystal Reports for Visual Studio 2010 (13.08). When I Preview a report and click the Export button, one of the listed formats is MHTML and it seems to produce an MHTML file with no problems. However, I can't find any Export Format setting for MHTML for when I am producing the reports programmatically using Visual Studio 2010.

 

In CrystalDecisions.Shared.ExportFormatType I can't see any entry for MHTML or Web Archive. Is there another option that can be used in conjunction with the HTML40 output format?

The specified module could not be found. (Exception from HRESULT: 0x8007007E)

$
0
0

Hi,

 

We have an exisiting .NET MVC project which uses crystal reports versions 2008 (dlls of version 12.0.). No we have Crystal Reports 2011 for.NET SDK is installed and I've updated all the crystal related dlls (Enterprise.Framework.dll, CrystalDecisions.Chared, CrystalDecisions.Web ...) to newer version which is 14.0. After this upgrade, when I run application, I am getting the following error:

 

The specified module could not be found. (Exception from HRESULT: 0x8007007E)

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)


Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

 

[FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)]

   System.Reflection.Assembly._nGetModules(Boolean loadIfNotFound, Boolean getResourceModules) +0

   System.Reflection.Assembly.nGetModules(Boolean loadIfNotFound, Boolean getResourceModules) +40

   System.Reflection.Assembly.GetTypes() +28

   System.Web.Mvc.TypeCacheUtil.FilterTypesInAssemblies(IBuildManager buildManager, Predicate`1 predicate) +161

   System.Web.Mvc.TypeCacheUtil.GetFilteredTypesFromAssemblies(String cacheName, Predicate`1 predicate, IBuildManager buildManager) +63

   System.Web.Mvc.ControllerTypeCache.EnsureInitialized(IBuildManager buildManager) +115

   System.Web.Mvc.DefaultControllerFactory.GetControllerTypeWithinNamespaces(RouteBase route, String controllerName, HashSet`1 namespaces) +58

   System.Web.Mvc.DefaultControllerFactory.GetControllerType(RequestContext requestContext, String controllerName) +634

   System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) +58

   System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) +118

   System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +46

   System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state) +63

   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) +13

   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8770194

   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155



We have another ASP.Net project, which is working fine after I update older crystal dlls to newer ones. This project is working fine.


Thanks in advance

Crystal Report Error in Windows Server 2012 - Load Report Failed

$
0
0

Badly needed help regarding the above topic. Thanks in advance for helping.

 

We have a web application experiencing this error after deployment in WinServer 2012 IIS 8. Previously, the application was deployed in WinServer 2003 but we dont experience any errors like this. We tried searching the net for solutions and these are the following things we've try doing so far.

 

- Installed Crystalreportsviewer13 64 bit in Server. After that, transferred the asp_net client folder in the IIS folder same level of our application.

- We discovered that upon browsing the asp_net client in IIS itself, error 500.24 is appearing in the server. Checked the permission for folder asp_net client. Add IIS_USR permission read execute and write on the folder and still same Load Report Failed.

- Next we tried integrating the crystalreportsviewer13 inside the application same Load Report Failed error.

- Installed Service Pack 8 for CrystalReport but to no avail.

 

Is there any way to get the real error behind the "Load Report Failed" error? Also, is there any other way to determine what else can be done to resolve this issue? Thanks in advance.

ReportDocument.Export() raises "Missing Parameter Values" exception

$
0
0

Hi

 

Recently I encountered a question about SAP Crystal Report that I have a rpt file with several sub reports and I am required to make the data source to be XML with http/https URLs. I created different .NET pages which returns XML stream as data source for both main report and sub reports in my rpt file, and also created a sub report links which pass dynamic parameters from main report to the sub reports, everything worked fine when I entered the necessary parameters only for the main report in the design tool, both the main report and sub reports displayed perfectly.

But it did not work in my .NET application which export the reports to PDFs, I referenced “CrystalDecisions.CrystalReports.Engine” and some other necessary DLLs into my project, and then I created an instance of ReportDocument, loaded the rpt file, set parameters which used in the main report, set connection info, and at last when I export the report it throw out an exception with “Missing Parameter Values” error message, even though I removed the sub report links which pass parameters from main report, the exception still occurred, but when I removed all the sub reports, and only export the main report it worked!!


Here is a result of my attempts:

 

Main Report

Sub Report

Result

1

With XML data source

No report

Works fine with dynamic parameters set to the http/https url which returns an xml results

2

With XML data source

Pass a static value and print it on the report

Works fine.

3

With XML data source

Create a SQL command WITHOUT any parameters passed from main report

Works fine

4

With XML data source

Create a SQL command WITH a dynamic parameter passed from main report

Works fine

5

With XML data source

Create a xml data source WITHOUT any parameters passed from main report

Failed with "Missing Parameter Values"

6

With XML data source

Create a xml data source WITH a dynamic parameter passed from main report

Failed with "Missing Parameter Values"

 

I am confused about this issue for a few days, is there any ideas or helps? many thanks!

invalid group section error when running report containing command.

$
0
0

The error is the following (displayed in Dutch, spent some time changing the language settings, but still CR persists in showing the message in my mother tongue, but the gist of it is: invalid group section or something like that) Process error: Ultimo.Services.ReportService.Core.ReportingException: Error creating export file: LtapList02-01.rpt ---> CrystalDecisions.CrystalReports.Engine.InvalidArgumentException: Deze groepssectie kan niet worden afgedrukt omdat het voorwaardeveld van de sectie niet bestaat of ongeldig is. Maak de sectie op om een ander voorwaardeveld te kiezen. Fout in bestand LtapList02-01 {DEE4EF1C-A138-4AE9-8C64-EF8389263782}.rpt: Ongeldige groepsvoorwaarde. ---> System.Runtime.InteropServices.COMException: Deze groepssectie kan niet worden afgedrukt omdat het voorwaardeveld van de sectie niet bestaat of ongeldig is. Maak de sectie op om een ander voorwaardeveld te kiezen. Fout in bestand LtapList02-01 {DEE4EF1C-A138-4AE9-8C64-EF8389263782}.rpt: Ongeldige groepsvoorwaarde.  at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)  at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)  --- End of inner exception stack trace ---  at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)  at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)  at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)  at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)  at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export(ExportOptions options) etc. The command is phrased thus: select * from {?DatabaseSchemaPrefix}applfn_LtapStructure(). The error is somehow associated with the parameter used in this command. If I remove it and replace it by the value used when running the report, the report runs successfully. Also, strangely, when I define a default value for the parameter in the command and programmatically add a value for it by the method call parameterFieldDefinition.CurrentValues.AddValue(), also the report will run flawlessly. Without the default value it will fail. But when I want to run the command without a value for the parameter (parameterFieldDefinition.CurrentValues.AddValue("")), so for it to be empty, while a default value is defined for it too, also, running the report will result in an error. My question is: has anyone ever seen this type of thing happening? And is there a solution?


Where can we get the crpe32.lib for C++ x64/x86 development ?

$
0
0

We develop crystal solutions for a long time. Prior to version 11.0 there was a development package containing the crpe32.lib delivered. In the current version there is only the .Net or java package available for development.

Because the crpe32.dll is still deployed with the runtime version 13.x, we are looking for the crpe32.lib to continue our c++ development. Is there a chance to get the crpe32.lib from SAP?

 

Thanks in advance,

Carsten

Crystal reports

$
0
0

I have problem while generate the crystal reports as

  instead of .rpt  i get .mht

 

Display like this

as

Crystal Reports for Visual Studio 2010 is a free download for adding presentation quality reports to WPF, WinForms, and ASP.Net Web Sites.

Major new features include:

  • 64-bit runtime
  • WPF viewer
  • Enhanced embedded report designer
  • Support for exporting to XLSX

sap.jpgLearn more and download Crystal Reports for Visual Studio 2010 today.

How to automatically/programmatically "publish" reports for local users of Crystal Reports 2011?

$
0
0

Hi,

 

  I'm not sure if I'm using the correct Crystal Reports terminology here, so apologies in advance.

 

  We've got Crystal Reports 2011 and are developing an application which comes with a number of report files (.rpt) as part of its installation. These reports are used to provide a view onto the database that our application writes to.

 

  Is it possible to automatically manage the collection of reports that are available to users of the Crystal Reports application? Ideally this would be done as part of our application's installation/upgrade procedure. In the case of upgrades, it is possible that some report files may be modified, some removed and others added. (i.e. as the application database's underlying schema is modified or new features added/deprecated).

  I believe this could be achieved manually by starting up Crystal Reports and adding and removing reports to/from the Workbench, but we'd like this list of reports to be available to all users on the PC (Crystal Reports is installed on the same PC as our application), and for the update procedure to be something that was automatically scriptable or programmable in something like .NET.


  I've read about the Repository (which sounds like a solution to making reports available for all users), but suspect that this is only usable after some other product(s) has been installed? I'm not entirely sure what products they would be.

 

  Could you please let us know whether this can be achieved with the version of Crystal Reports we've got, and if so, how?

 

  The version of Crystal we have is: SAP BusinessObjects, CR Developer, Version 14.0.4.738 RTM, Product Type: Full

 

  Many thanks in advance,

    -Nige

Exception trying to view a RPT

$
0
0

Hello,

 

Since I've installed CRforVS 13.0.8 I'm not able to view any report.


I always getan exception whenI linktheReportDocument to the CrystalReportViewer.ReportSource


Here is my code, in case it helps:

 

ReportDocument rpt = new ReportDocument();

rpt.Load(Report);

_conecta(rpt); // connection to DB

 

CrystalReportViewer lRptV = new CrystalReportViewer();

lRptV.ReportSource = rpt;

 

This raises an exception:

 

System.NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.

   en CrystalDecisions.Windows.Forms.MainReportDocument.get_ReportSource()

   en CrystalDecisions.Windows.Forms.ViewerDocument.GetAvailableExportFormats()

   en CrystalDecisions.Windows.Forms.PageView.CreateReportDocument(String rptURI)

   en CrystalDecisions.Windows.Forms.PageView.CreateNewReportDocument(String pageName)

   en CrystalDecisions.Windows.Forms.CrystalReportViewer.CreateReportSource(Object reportSource)

   en CrystalDecisions.Windows.Forms.CrystalReportViewer.set_ReportSource(Object value)

   en GEI_CrystalPru.InformePru.PrevisualizaEnForm(Form afForm) en C:\VS2010\SBO\Otros90\GEI_CrystalPru\InformePru.cs:línea 111

 

The report can be printed or exported without problems...

 

Also, this worked in versión 13.0.5

 

Thanks in advance.

When is the report moved from the Crystal Report Server to the destination?

$
0
0

When a report is executed on the Crystal Report Server and the boDiskOpts.DestinationFiles is across the network on a different server, is the report built and finished locally on the Crystal Report Server before it is moved adross the network to the destination filder?

Viewing all 2556 articles
Browse latest View live