Exporting issues -- Crystal & web viewer
I have two issues that I'm trying to working through with Crystal XI. I have Crystal XI R2 and Crystal Report Server XI R2 SP2 installed.
First, when I open a report from the server in the web viewer, I don't have an option to export to CSV. Has that been added in SP4 or is there any way to add that option in?
Also, when I export a report directly from Crystal XI R2, the file name is generated in all lower-case, regardless of how it's typed in in the dialog. Is there a way to fix this so that it keeps the case I typed in?
Thanks.
Hi Mike,
Never seen that Dev tool before so it won't be in our supported platforms.
I recall something similar and it was due to the screen resolution or zoom level.
Have a look at the source code of the page to see what it is doing. Compare it to a VS .NET ASP.NET app to see what the differences are.
Thank you
Don
Similar Messages
-
Export button in Web Viewer not working
Hi,
The export button in Web Viewer is not working at all and giving errors. I am hosting the application in Tomcat Server.
Please provide help.
Thanks and Regards,
GouravHi,
I find out one of the reasons that this could be happening. On clicking the export or the print option that URL is automatically redirected to my http://localhost/.../CrystalReportViewerHandler but this folder does not exists in the folder where I have deployed my application.
The details for accessing this folder is stored in the <my application folder>/WEB-INF/web.xml
The contents of the file is listed below:
<servlet-mapping>
<servlet-name>CrystalReportViewerServlet</servlet-name>
<!-- url-pattern>/CrystalReportViewerHandler</url-pattern -->
<url-pattern>/crystalreportviewers</url-pattern>
</servlet-mapping>
Please let me know how can I resolve this issue.
Thanks,
Gourav -
Crystal Web Viewer 2010 - Strange Toolbar Behavior
Ww are using the CR13 Web Viewer Control inside a Dot Net Nuke Control Module.
Everything is going smashingly....we just have a single issue left with how the toolbar is being diaplayed.
Please click on the Link to see an image of how the toolbar looks when it is disaplayed.
If anyone has seen this issue or has a handle on what they think might be going on, any help would be appriecated!!
Thanks,
Mike
[Click Here - Crystal Report Viewer Toolbar Issue|http://www.maricopamicro.net/CRViewIssue.htm]Hi Mike,
Never seen that Dev tool before so it won't be in our supported platforms.
I recall something similar and it was due to the screen resolution or zoom level.
Have a look at the source code of the page to see what it is doing. Compare it to a VS .NET ASP.NET app to see what the differences are.
Thank you
Don -
Exporting Issue with CR Viewer 2008
Hi Experts, We have Manufacturing Cost Report for several plants/mills and we are calculating on Current Period, Quarter-To-Date and Year-to-date. We able to export Year-To-Date and Quarter-To-Date in MS-Excel via CR Viewer but we are having issues while exporting the same report for Current Period in MS-Excel 2003 via CR Viewer. We are using CR Viewer 2008 Build 12.2.212. I am pasting the error below for your review: Product Info: SAP Crystal Reports Viewer 2008 com.businessobjects.crystalreports.viewer.shell.application -
JVM Info: 1.6.0_02-b05 Sun Microsystems Inc. Java HotSpot(TM) Client VM -
System Configuration: win32 x86 en_US -
Libraries: C:\Documents and Settings\AhmedS\Application Data\Business Objects\Crystal Reports Viewer 2008\libs\CR\us.jar version: null -
Stack Trace: Caused by : com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.NullPointerException---- Error code:-2147467259 Error code name:failed com.crystaldecisions.sdk.occa.report.application.PrintOutputController.if(SourceFile:237) com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(SourceFile:205) com.businessobjects.crystalreports.designer.core.elements.formatted.FormattedDocumentModeller.export(FormattedDocumentModeller.java:758) com.businessobjects.crystalreports.designer.uibase.actions.AbstractExportHandler.performExport(AbstractExportHandler.java:364) com.businessobjects.crystalreports.designer.uibase.actions.AbstractExportHandler.access$000(AbstractExportHandler.java:77) com.businessobjects.crystalreports.designer.uibase.actions.AbstractExportHandler$1.run(AbstractExportHandler.java:191) java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) com.businessobjects.crystalreports.designer.uibase.dialogs.ProgressMonitorDialog$6.run(ProgressMonitorDialog.java:696) org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) Caused by : java.lang.NullPointerException com.crystaldecisions.reports.formatter.recordformatter.rcmdatamodel.f.suppressed(SourceFile:101) com.crystaldecisions.reports.exporters.excel.formatter.ExcelDataOnlyExportFormatter.do(SourceFile:1421) com.crystaldecisions.reports.exporters.excel.formatter.ExcelDataOnlyExportFormatter.a(SourceFile:1239) com.crystaldecisions.reports.exporters.excel.formatter.ExcelDataOnlyExportFormatter.a(SourceFile:1328) com.crystaldecisions.reports.exporters.excel.formatter.ExcelDataOnlyExportFormatter.if(SourceFile:886) com.crystaldecisions.reports.exporters.excel.formatter.ExcelDataOnlyExportFormatter.a(SourceFile:805) com.crystaldecisions.reports.exporters.excel.formatter.ExcelDataOnlyExportFormatter.a(SourceFile:538) com.crystaldecisions.reports.exporters.excel.ExcelDataOnlyExporter.processRecordContent(SourceFile:131) com.crystaldecisions.reports.formatter.export2.a.a(SourceFile:342) com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.if(SourceFile:645) com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.a(SourceFile:586) com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(SourceFile:636) com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.int(SourceFile:661) com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1944) com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661) com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167) com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529) com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527) java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) java.util.concurrent.FutureTask.run(Unknown Source) com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing$3.doWork(ExecutorWithIdleProcessing.java:182) com.businessobjects.crystalreports.designer.core.util.thread.AbstractCancellableRunnable.run(AbstractCancellableRunnable.java:69) com.businessobjects.crystalreports.designer.core.util.thread.PriorityTask.run(PriorityTask.java:75) com.businessobjects.crystalreports.designer.core.util.thread.PriorityCompoundCancellableRunnable.runSubtask(PriorityCompoundCancellableRunnable.java:187) com.businessobjects.crystalreports.designer.core.util.thread.PriorityProgressAwareRunnable.runSubtask(PriorityProgressAwareRunnable.java:90) com.businessobjects.crystalreports.designer.core.util.thread.PriorityCompoundCancellableRunnable.doWork(PriorityCompoundCancellableRunnable.java:144) com.businessobjects.crystalreports.designer.core.util.thread.AbstractCancellableRunnable.run(AbstractCancellableRunnable.java:69) com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing$IdleTask.run(ExecutorWithIdleProcessing.java:320) java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) java.lang.Thread.run(Unknown Source) -
Kindly advise if you have any work around for this issue ThanksHI Shehzad,
Please check whether all the packages has been imported correctly in your code.
you could find the dependent jar file necessary for the Crystal report Viewer [Go to Crystal Report viewer SDK|http://www.sdn.sap.com/irj/boc/sdklibrary]
Lets me know if this works.
Regards,
Rameez -
Crystal Web Viewer executing stored procedure when going to next/prev page
We are using VS.NET 2005 with SP1 to design reports and embed them in an aspnet web app. Some of them take a while to run, even in the designer. In the designer, however, next page and print operations are speedy. In the web viewer, next page and print operations are agonizingly slow.
Viewing page 2 of a report seems to take about as long as viewing page
1. After running SQL Profiler to trace the report, it is apparent that the entire report (Stored Procedure Call) is being re-run and just page 2 is being sent to the browser.
Is this right?
Shouldn't the report document be stored on the server or event the client so that the desired page can be loaded without having to hit the database again??
We are using Business Objects Crystal Reports XI Release 2
Do you have a sample code on this issue.It still did not work. As you see my code has the Not Page.IsPostBack. It still goes to the database to run the stored procedure over and over again.
Do an example with more than 100 records to have multiple pages. After you go to page #2, change your data by updating one of your fields that will not fit the criteria you are looking for. In this example I changed the strPeriod from 1 to 2 and it gives you a blank report.
update PeriodTable
set fieldPeriod = 2
< h3>Here is the code:</h3>
Imports System.Xml
Imports System.data
Imports System.IO
Imports System.Text
Imports System.Configuration
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Partial Public Class viewreport
Inherits System.Web.UI.Page
Private _dsContacts As DataSet
Dim strUser, strReport, strPeriod, strRegionType, strRegion, strDate, strUnit As String
Private Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
Try
If Not Page.IsPostBack Then
If Not Page.User.Identity.IsAuthenticated Then
Response.Redirect("default.aspx")
End If
strUser = Request.QueryString("strUser")
strReport = Request.QueryString("strReport")
strPeriod = Request.QueryString("strPeriod")
strRegionType = Request.QueryString("strRegionType")
strRegion = Request.QueryString("strRegion")
strDate = Request.QueryString("strDate")
strUnit = Request.QueryString("strUnit")
If strUser <> "" And strReport <> "" Then
ConfigureCrystalReports()
Else
lblMessage.Text = "Values for the report where not received properly.<br /><br />" & strReport & "<br /><br />Please contact your Commissions Reporting Administrator<br /><br />"
End If
End If
Catch ex As Exception
ErrorRoutine(ex, "Page_Load")
End Try
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
GlobalCode.DisplayTitle("MetLife - Commissions Administration - Report Viewer", Page)
End Sub
Private Sub ConfigureCrystalReports()
Try
Dim i, j As Integer
Dim ParameterValue As String
_dsContacts = Nothing
_dsContacts = New DataSet
_dsContacts.ReadXml(Server.MapPath("XML\ReportFiles.xml"))
For i = 0 To _dsContacts.Tables(0).Rows.Count - 1
If Trim(UCase(_dsContacts.Tables(0).Rows(i)("FileName").ToString)) = Trim(UCase(strReport)) Then
Dim conn As ConnectionInfo = New ConnectionInfo()
Dim reportPath As String = Server.MapPath("Reports/" & _dsContacts.Tables(0).Rows(i)("FileName").ToString)
If Not File.Exists(reportPath) Then
lblMessage.Text = "Report does not exists in our servers.<br /><br />" & reportPath & "<br /><br />Please contact your Commissions Reporting Administrator<br /><br />"
Exit Sub
End If
conn.DatabaseName = _dsContacts.Tables(0).Rows(i)("Database").ToString
conn.UserID = _dsContacts.Tables(0).Rows(i)("UserID").ToString
conn.Password = _dsContacts.Tables(0).Rows(i)("Password").ToString
Dim ConnInfo As New ConnectionInfo
With ConnInfo
.DatabaseName = _dsContacts.Tables(0).Rows(i)("Database").ToString
.UserID = _dsContacts.Tables(0).Rows(i)("UserID").ToString
.Password = _dsContacts.Tables(0).Rows(i)("Password").ToString
End With
ParameterValue = ""
CRViewer.ReportSource = reportPath
CRViewer.ParameterFieldInfo.Clear()
Dim ParamFields As ParameterFields = CRViewer.ParameterFieldInfo
Dim reportSeparation As New ReportDocument()
reportSeparation.Load(reportPath)
For j = 0 To reportSeparation.ParameterFields.Count - 1
Dim param As New ParameterField
param.Name = reportSeparation.ParameterFields.Item(j).Name
Select Case param.Name
Case "VRPTTYPE"
ParameterValue = strRegionType
Case "VPARAM"
ParameterValue = strRegion
Case "VUSER"
ParameterValue = strUser
Case "VDATE"
ParameterValue = strDate
Case "VUNIT"
ParameterValue = strUnit
Case "VPERIOD"
ParameterValue = strPeriod
Case Else
lblMessage.Text = "<h1>Report has parameters not expected.</h1><br /><br /><h2>" & reportPath & "</h2><br /><br />Please contact your Commissions Reporting Administrator<br /><br />"
Exit Sub
End Select
Dim param_Value As New ParameterDiscreteValue
param_Value.Value = ParameterValue
param.CurrentValues.Add(param_Value)
ParamFields.Add(param)
Next '
For Each cnInfo As TableLogOnInfo In CRViewer.LogOnInfo
cnInfo.ConnectionInfo = ConnInfo
Next
CRViewer.DataBind()
Exit Sub
End If
Next
Catch ex As Exception
ErrorRoutine(ex, "ConfigureCrystalReports")
End Try
End Sub
Public Sub ErrorRoutine(ByVal ex As Exception, ByVal Routine As String)
GlobalCode.ErrorRoutine(ex, Routine, Master)
End Sub
End Class -
Crystal Web Viewer field overflow horizontally
A report developed in Crystal 9 when viewed on a Web App. using the Crystal Viewer does not inherit the design time formatting of fields.
This happens esp. for string field objects whose "can grow" is not checked. The field overflows horizonantally to show the full string.
Crystal 2008 , ASP.NET 2005
Any suggestions..This is a known issue due to limitations when generating the HTML. To workaround it you need to set can grow and max lines to 1. This forces the report to only place the information that would fit on one line into the HTML generated.
-
Excel Export issue in Web Dynpro ABAP
Hello,
We are facing a problem and need suggestion. In one of our WD Abap applications the output is displayed in an ALV table. We have a button (provided by standard ALV functions) to export Excel.
So far so good, but the issue is the amount columns display in the portal show the values as per user default settings. For example 123.456,78 whereas on export to excel it shows 12345.78
Is there some way to export to excel with the users regional settings (same as displayed on portal). So far we check, almost all columns follow the regional user default settings except the amount column. Is there someway we can fix this.
Users mention it worked before but not now. Its difficult to verify this statement now.
Kindly help how we could solve this issue.
Best regards,
Moderator message: please have a look in the separate forum for Web Dynpro ABAP.
Edited by: Thomas Zloch on Dec 19, 2010 9:31 PMHI,
You cannot use GUI classes and methods in web dynpro . That will dump.
Instead you can use file down load UI element or..
If you have the content in xstring format use ATTACH_FILE_TO_RESPONSE method of CL_WD_RUNTIME_SERVICES class.
Regards,
Madhu -
Best export type for web viewing
I just bought a Eyetv and recoreded me playing halo 2 on my 360. i was wondeirng what the best export for posting something on youtube would be. the choices i have are, quicktime movie, mpeg-4, h.264,divX avi, windows media, AAc audio and apple lossless audio. i was just wondering what the best is to post videos on youtube. i tried one but the quality didnt turn out so well once it was on youtube but before that it was clear. is it just youtubes uploads?
i think it is just youtube decreasing the quality so it will stream quickly ... i always use quicktime movie though ... no particular reason for that though!
-
Sizing the Crystal Web Viewer Control
Is it possible to alter it's size? I'd like it to fill my pages width and scroll in the page view NOT expand.
I believe there is a bestfitpage that you need to set to false, then you can set the height and width.
-
Getting syntax error in Crystal Report Viewer
The web application that I am supporting has reports that are presented through CR Viewer. The problem that I am facing is that if I pass a value to get the report, its giving the following error.
The syntax of the value of prompt 'name_of_paramente_passing' is incorrect. Please check the syntax and try again.
I am not getting this error if I run the same report through the actual Crystal report program.
So when I pass 123.1 to the crystal web viewer it wont give me any trouble. But If I pass 123.1(a) , it throws that error.
somehow the combination of pareanthesis and the alphabet is causing some trouble....
Is this a bug or some other problem.?
Version that I have:
Crystal Report web Viewer Control 11.5
Crystal Developer 11.0.0.1282
Please reply if you have any work around for this.
Thank you,
SanthoshThanks Mohammed. But our application is trying to pass a parameter which contains user data like section numbers....
So when we pass the value 123.1(a) , here what is happening behind the scene of CR viewer
webSource0.AddParameter "promptex-NAMEOFPARAMETER", "123.1%28a%29"
and it throws up the error
"The syntax of the value for prompt 'NAMEOFPARAMETER' is incorrect. Please correct the syntax and try again"
I have no idea why it is throwing up this errror.... -
When can we expect an update of the web viewer?
The content displayed is not responsive and is therefore not useable on most small screensThe v29 release introduced a couple of bugs that's most likely affecting you. These issues should be resolved within the next day or two.
http://helpx.adobe.com/digital-publishing-suite/release-note/dps-bug-fix-release-notes.htm l
Known issues with web viewer
Some scrollable frames in web viewer are no longer working properly with the v29 release. This issue is under investigation.
Social Sharing is not working properly for v27 and v28 apps for folios published after the release of v29.
Smooth Scrolling articles in web viewer may not display properly on the last page if the length of the smooth scrolling article is not an exact multiple of the folio height. For example, the last page of a 1024x2000 article may be cropped, but a 1024x1536 (2 times the height) or a 1024x2304 (3 times the height) should display fine. The issue is especially common in portrait orientation.
TOC images larger than 70x70 are being cropped instead of scaled. -
Error With Export/Print from Crystal Report Viewer
Hello there,
I've searched through the web and SAP discussion boards with not much luck with this issue.
After working through this for some days now I've decided to look here for help.
Environment:
I have created a web Crystal Report viewer application(Developed with SBOP BI Platform 4.0 SP06 .NET SDK Runtime) that communicates with a managed Cyrstal Server 2011 SP4 (Product 14.0)
I am able to connect and authenticate with the server, retrieve a token for communication and display reports in the Crystal report Viewer successfully.
Problem:
When I attempt to export, I receive the prompt to select format and pages.
When I click export after selections most times I receive an error with the text
Unable to cast COM object of type 'System.__ComObject' to interface type 'CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{74EEBC42-6C5D-11D3-9172-00902741EE7C}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
Other times the page simply refreshes on export.
When I click to print, no print dialog is displayed the page always refreshes and no error is displayed.
No Print or Export document is ever created.
As many print/export issues seems to be related, I'm guessing this two issues are as well.
Notes:
I am utilizing the ReportClientDocument model
I am storing this in session to use as the crystal report viewer report source on postbacks
I am assigning a subset of export formats to the crystal report viewer
I am setting particular parameters as well on the report source
At this point I would appreciate every assistance I may receive on this issue
Thanks in advance,
Below is the pertinent code
Code:
<aspx>
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server"
AutoDataBind="true" EnableDatabaseLogonPrompt="False"
BestFitPage="False" ReuseParameterValuesOnRefresh="True"
CssClass="reportFrame" Height="1000px" Width="1100px" EnableDrillDown="False"
ToolPanelView="None" PrintMode="Pdf"/>
<Codebehind>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CrystalDecisions.Enterprise;
using CrystalDecisions.ReportAppServer.ClientDoc;
using CrystalDecisions.ReportAppServer.CommonObjectModel;
using CrystalDecisions.ReportAppServer.Controllers;
using CrystalDecisions.ReportAppServer.DataDefModel;
using CrystalDecisions.ReportAppServer.ReportDefModel;
using CrystalDecisions.Shared;
namespace ClassicInternalReportPage
public partial class Reports : System.Web.UI.Page
protected override void OnInit(EventArgs e)
base.OnInit(e);
if (!String.IsNullOrEmpty(Convert.ToString(Session["LogonToken"])) && !IsPostBack)
SessionMgr sessionMgr = new SessionMgr();
EnterpriseSession enterpriseSession = sessionMgr.LogonWithToken(Session["LogonToken"].ToString());
EnterpriseService reportService = enterpriseSession.GetService("RASReportFactory");
InfoStore infoStore = new InfoStore(enterpriseSession.GetService("InfoStore"));
if (reportService != null)
string queryString = String.Format("Select SI_ID, SI_NAME, SI_PARENTID From CI_INFOOBJECTS "
+ "Where SI_PROGID='CrystalEnterprise.Report' "
+ "And SI_ID = {0} "
+ "And SI_INSTANCE = 0", Request.QueryString["rId"]);
InfoObjects infoObjects = infoStore.Query(queryString);
ReportAppFactory reportFactory = (ReportAppFactory)reportService.Interface;
if (infoObjects != null && infoObjects.Count > 0)
ISCDReportClientDocument reportSource = reportFactory.OpenDocument(infoObjects[1].ID, 0);
Session["ReportClDocument"] = AssignReportParameters(reportSource) ? reportSource : null;
CrystalReportViewer1.ReportSource = Session["ReportClDocument"];
CrystalReportViewer1.DataBind();
//Viewer options
// Don't enable prompting for Live and Custom
CrystalReportViewer1.EnableParameterPrompt = !(Request.QueryString["t"] == "1" || Request.QueryString["t"] == "4");
CrystalReportViewer1.HasToggleParameterPanelButton = CrystalReportViewer1.EnableParameterPrompt;
CrystalReportViewer1.AllowedExportFormats = (int)(ViewerExportFormats.PdfFormat | ViewerExportFormats.ExcelFormat | ViewerExportFormats.XLSXFormat | ViewerExportFormats.CsvFormat);
protected void Page_Load(object sender, EventArgs e)
if (IsPostBack && CrystalReportViewer1.ReportSource == null)
CrystalReportViewer1.ReportSource = Session["ReportClDocument"];
CrystalReportViewer1.DataBind();
private bool AssignReportParameters(ISCDReportClientDocument reportSource)
bool success = true;
if (Request.QueryString["t"] == "1" || Request.QueryString["t"] == "2" || Request.QueryString["t"] == "4" )
reportSource.DataDefController.ParameterFieldController.SetCurrentValue("", "STORE", Session["storeParam"]);
if (Request.QueryString["t"] == "2")
reportSource.DataDefController.ParameterFieldController.SetCurrentValue("", "FromDate", Request.QueryString["fromdate"]);
reportSource.DataDefController.ParameterFieldController.SetCurrentValue("", "ToDate", Request.QueryString["todate"]);
else if (Request.QueryString["t"] == "3")
reportSource.DataDefController.ParameterFieldController.SetCurrentValue("", "SKU", Request.QueryString["sku"]);
else
//Unknown report type alert
success = false;
return success;Thanks Don for your response,
I'm new to the SCN spaces and my content has been moved a couple of times already.
In response to your questions
The runtime is installed on the web application server, if by that you mean the machine hosting the created .NET SDK application.
My question was whether it was also required on the Crystal Server 2011 (I.E. the main enterprise server with CMS and Report management and I guess RAS and all that). I figured this would remain untouched and queries would simply be made against it to retrieve/view reports e.t.c
If install of the SDK on Crystal Server 2011 is indeed required should I expect any interruption to any of the core services after a restart. I.E. I'm hoping that none of the SDK objects would interfere with the existing server objects (in SAP Business Objects)Reason I ask is I note that much of the SDK install directories are similar to the existing Crystal Enterprise Server 2011 (Product 14.0.0)
Is this temp folder to be manually created/configured or is it created by the application automatically to perform tasks. Or are you referring to the default C:\Windows\Temp directory and so saying that the application would try to use this for print and export tasks?Once I'm sure which I'd give the app pool user permission
Printing is to be client side but I figured by default (with the Crystal Report Viewer) it would simply pool and print from the user's printer. This is how it works with the previously used URL reporting approach (viewrpt.cwr). Therefore a user can print the document from wherever they are with their own printer.We don't intend on printing from the server machine, but are you suggesting that a printer must be installed on server (which one web or enterprise server) for any client side printing to work.
App pool is running in 32 bit mode
Initially didn't get anything useful from fiddler but I'd try and look closer on your suggestion.
It's also possible that some of my questions are a misunderstanding of APP vs RAS vs WEB, so please feel free to clarify. Currently I see the Web server as simply the created .NET SDK Application and RAS (Crystal Server 2011 e.t.c) as the existing fully established Application server which I simply pool for information.
Thank you for your patience and advice, -
Crystal Report Viewer shows blank but exporting shows results
I'm getting a really strange issue when opening a report using the CrystalReportViewer class. The Crystal Report Viewer shows up nicely in my webpage....but the report is completely blank. When I click on the Export button in the Viewer & export to any format, the results show up nicely. Also when I right click on the Viewer page & view source, I can see all my report data there in Javascript....but for some reason it's just not being rendered on the page.
I'm using Crystal Reports 2008 & I believe I've added the necessary jars & also included the entire crystalreportviewers folder (with all js files) in my Web folder. Also, I don't see any exceptions in the crystal_exception_log_file.
Any help would be greatly appreciated
ThanksThe same problem to me also.
I was using the crystal report in visual studio 2008, the report was perfectly working. But when we migrated the project into visual studio 2010, the crystal report simply shows the blank report. But the javascript is having the actual data but not only rendered in the screen.
Please anybody have valid solution for this, let us know.
Thanks -
Problem in crystal report viewer control's toolbar "export"button using SSL
Hi,
I would like to ask. My project is using BO XI Release 2 and VS-Studio 2005. Initially my project doesn't use SSL... At that time when i view the report with crystal report viewer control and can export (using built-in toolbar "export button"). Now project is using SSL and canu2019t export the error is
u201CInternet Explorer cannot download file from server.
Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.u201D
Actually this error can solve "Cache-control" change to "no-cache". But I donu2019t know in crystal reportu2026
Anyone can help ???
ThanksIn Internet Explorer, go to Tools -> Internet Options -> Advanced and ensure "Do not save encrypted pages to disk" is unchecked.
Default is to have that option checked.
It was considered a IE security issue that IE saves all content to temp disk location unencrypted, even those pages served by HTTPS (for example, let's say you use HTTPS to download your bank info, and it's stored to temp disk for someone else to retrieve later). So more recent versions of IE implemented that option setting.
How that option setting works is strange - it downloads the file, saves to disk, then deletes the copy from the disk immediately, before passing it to the application responsible for the MIME type. So the application tries to open a directory path to a non-existing file.
Issue is specific to IE, and it's not something you can control via the SDK.
Sincerely,
Ted Ueda -
Crystal Reports Viewer Control - Visual Studio 2008 WEB Application
My question is this: Has ANYONE on this planet been able to get the ASP .NET CR Viewer control to actually work?
Why does this editor NOT recognize End-of-line or CR characters or any whitespace??
I have developed a Crystal Reports "Viewer" web application in VS2008 using C#.
It's a simple app, in that it's a single page with a treeview control (containing the grouped names of the reports to which the user has access) and the CR Viewer control.
The report files live on a network share, and permissions to them is controlled via a SQL Server database, which, for each report, stores the UserID and Logion for the oracle database, as well as any required parameter values.
The reports themselves are all hititng an Oracle 10g database.
I managed to do this in a Windows desktop applcation using Visual Studio 2005 and VB .net, but now, upon trying to make this a web application in VS2008, I have completely failed. The application works when run locally, but when deployed to the web server, I experience database login prompts when I should not, (the dreaded "Report requires further information" message) even thought the setdatabaselogin has already been set. I have tried saving the reportdocument in viewstate and re-assigning the viewer Datasource property to it, that also fails. However, it only does it on some reports, and not others. (admittedly, the reports may have been created using different CR versions)
The viewer also displays data it should not be displaying when I attempt to scroll, when I do manage to get a report to run.
I am setting parameters dynamically at run time, whose values are stored in the SQL database.
Code Sample:
protected void ShowReport(int ReportID)
SQLDataPortal2005.Common sql = new SQLDataPortal2005.Common();
Hashtable outParms = new Hashtable();
string sAccess;
IDataReader dr;
CrystalDecisions.CrystalReports.Engine.ReportDocument rptDocument = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
System.Security.Principal.WindowsPrincipal p = System.Threading.Thread.CurrentPrincipal as System.Security.Principal.WindowsPrincipal;
sAccess = p.Identity.Name;
int j = 0;
int i = -1;
if (!IsAdmin())
sql.ExecNonQuery("CrystalReports", outParms, "proc_CRM_Check_Permissions", sAccess, Convert.ToInt32(TreeView1.SelectedNode.Value));
if (outParms["@Allow"].ToString() != "True")
Response.Redirect("ErrorPage.aspx"); // redirect to error page
string sPath = System.Configuration.ConfigurationManager.AppSettings["WareHouse"].ToString();
sPath = sPath + TreeView1.SelectedNode.Text.Trim() + ".rpt";
rptDocument.Load(sPath);
dr = sql.GetDataReader("CrystalReports", "proc_CRM_Get_Report", Convert.ToInt32(TreeView1.SelectedNode.Value));
while (dr.Read() == true)
j += 1;
if (j < 2)
rptDocument.SetDatabaseLogon(dr["DB_Login"].ToString(), dr["DB_Pwd"].ToString(), "PLAW", "LAWDB", true);
pList = dr["ParmList"].ToString().Split(',');
dr.Close();
dr.Dispose();
if (pList.Length > 0 && pList[0].ToString().Trim() != "")
foreach (CrystalDecisions.Shared.ParameterField x in rptDocument.ParameterFields)
i++;
switch (x.ParameterValueType)
case CrystalDecisions.Shared.ParameterValueKind.BooleanParameter:
rptDocument.SetParameterValue(x.Name, Convert.ToBoolean(pList<i>));
break;
case CrystalDecisions.Shared.ParameterValueKind.CurrencyParameter:
rptDocument.SetParameterValue(x.Name, Convert.ToDouble(pList<i>));
break;
case CrystalDecisions.Shared.ParameterValueKind.DateParameter:
rptDocument.SetParameterValue(x.Name, Convert.ToDateTime(pList<i>));
break;
case CrystalDecisions.Shared.ParameterValueKind.DateTimeParameter:
rptDocument.SetParameterValue(x.Name, Convert.ToDateTime(pList<i>));
break;
case CrystalDecisions.Shared.ParameterValueKind.NumberParameter:
rptDocument.SetParameterValue(x.Name, Convert.ToInt32(pList<i>));
break;
case CrystalDecisions.Shared.ParameterValueKind.StringParameter:
rptDocument.SetParameterValue(x.Name, Convert.ToString(pList<i>));
break;
case CrystalDecisions.Shared.ParameterValueKind.TimeParameter:
rptDocument.SetParameterValue(x.Name, Convert.ToDateTime(pList<i>));
break;
Session["CReport"] = rptDocument;
CRV1.ReportSource = rptDocument;
CRV1.DisplayGroupTree = false;
CRV1.HasRefreshButton = true;
CRV1.ShowFirstPage();
Is there a better/different way of accomplishing this very simply process? All I need this application to do is to view a report, while setting it's parmeters (if required) dynamically at run time. I don't EVER want the user to be prompted for DB LOGIN INFO.
Edited by: RichardK on May 10, 2010 4:14 PM
Edited by: RichardK on May 10, 2010 4:14 PM
Edited by: RichardK on May 10, 2010 4:16 PM
Edited by: RichardK on May 10, 2010 4:18 PM
Edited by: RichardK on May 10, 2010 4:22 PM
Edited by: RichardK on May 10, 2010 4:23 PMTo answer you question; Yes, I suspect that most of the users in this community have managed to successfully create web apps. And this is the tiniest of sampling of the developers out there...
A few suggestions;
1) Keep the posts to under 1200 characters. Otherwise, the formatting is lost which makes it difficult to read.
2) Try out a few sample apps from here:
https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
Suggest; csharp_web_simplelogonengine.zip, csharp_web_simplelogonviewer.zip and csharp_web_subreport_logon.zip.
3) Start simple; one table, one field, no subreports. Hard code the database logon parameters. Convince your self that this does work. Increase the complexity - add fields, tables, subreports. Do not mix connection methods (e.g.; if ODBC for main, than ODBC for sub is a good idea, though not a requirement).
4) See the article [Troubleshooting Guide to Database Connectivity Issues with Crystal Reports in Visual Studio .NET Applications|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b0225775-88c4-2c10-bd80-8298769293de].
5) See [this|http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/d05b3bb7-0f28-2c10-4ea3-84dbdc4e414e?quicklink=index&overridelayout=true] article.
6) Consider creating a phone case here:
http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300
Ludek
Follow us on Twitter
http://twitter.com/SAPCRNetSup
Maybe you are looking for
-
ITunes Error 11 received when doing a normal restore on iPod Touch 4G iTunes.
Hi. I'm trying to do a normal restore on my iPod Touch 4G on iTunes. I'm running on the up-to-date firmware of 6.1.6 What I am basically doing is putting my iPod in Recovery Mode, plugging it into my PC, click "Restore and Update", allow iTunes to do
-
Apple TV loosing connection to TC.
My two Apple TVs cannot stay connected to the Time Capsule. Everything worked fine with the AEBS but the connection keeps getting lost with TC. The Apple TV shows that the network connection is fine but no internet connection is available (no itunes
-
MBA won't connect to the internet
I am having a problem that I cannot figure out. I've searched Google as well as the Apple discussion boards, and I have found nothing that addresses my problem. Yesterday, I was able to turn on my airport in my iMac (which is connected to a cable mod
-
I'm trying to change the location where my apps etc are stored
I'm trying to change the location where my apps etc are stored, when I close iTunes and reopen, it is automatically reset to the default location
-
Help desk will not accept my serial number
When entering serial number of my imac, I get error message stating that serial number is invalid.