Problem using pagestream=yes in reports
Using 10g app server and the srw.run_report procedure I turned on page streaming. I saw that several files were created but all the page level html files were 0KB. Below is output from reports when running procedure in debug mode. Any ideas?
*** Requesting value for TAG desName [usr/oracle/1012MID/reports/cache/FNFS0055_buedlffkib.html]
*** Requesting value for TAG file [FNFS0055_buedlffkib61640569.htm]
*** Requesting value for TAG file [FNFS0055_buedlffkib61640569_11.htm]
*** Requesting value for TAG file [FNFS0055_buedlffkib61640569_5.htm]
*** Requesting value for TAG file [FNFS0055_buedlffkib61640569_10.htm]
*** Requesting value for TAG file [FNFS0055_buedlffkib61640569_4.htm]
*** Requesting value for TAG file [FNFS0055_buedlffkib61640569_3.htm]
*** Requesting value for TAG file [FNFS0055_buedlffkib61640569_2.htm]
*** Requesting value for TAG file [FNFS0055_buedlffkib61640569_1.htm]
*** Requesting value for TAG file [FNFS0055_buedlffkib61640569j.htm]
*** Requesting value for TAG file [FNFS0055_buedlffkib61640569_9.htm]
*** Requesting value for TAG file [FNFS0055_buedlffkib61640569_8.htm]
*** Requesting value for TAG file [FNFS0055_buedlffkib61640569_7.htm]
*** Requesting value for TAG file [FNFS0055_buedlffkib61640569_12.htm]
*** Requesting value for TAG file [FNFS0055_buedlffkib61640569_6.htm]
Getting value for element: queued
*** Requesting value for TAG queued [Jan 23, 2009 8:59:15 AM]
Getting value for element: started
*** Requesting value for TAG started [Jan 23, 2009 8:59:15 AM]
Getting value for element: finished
*** Requesting value for TAG finished [Jan 23, 2009 8:59:18 AM]
Getting value for element: parentJob
*** RUN REPORT BY URL - Processing finished
JobID : 19091
StatusCode : 4
StatusText : Finished successfully
================================================
TimeStamp : 01/23/09 08:59 AM
================================================
Hi Kal,
i found the solution !!!
The File uifont.ali could be found at location D:\Oracle\Middleware\Oracle_FRHome1\tools\common\
Inside of this file i found the wrong referenz to my barcode 'CO3_____.TTF'
Correct referenz:
# This example shows how to embed Type 1 Arial font into the PDF file:
# Arial = "Arial.pfm Arial.pfb"
# You need to specify the .pfm file before the .pfb file.
# The font files must exist in one of the folders specified in REPORTS_PATH.
[PDF:Subset]
"Codezweifuenfind".....="CO3_____.TTF"
Bad referenz:
[PDF:Subset]
"Codezweifuenfind".....="CO3_____0.TTF"
many thanks for your efforts.
Regards
Klaus
Similar Messages
-
Problem using default value of report parameter 1 to validate parameter 2 passed in to report
I am having a problem with an SSRS report using the default value of report parameter 1 to validate parameter 2 passed in to report (via C#) instead of using the value of parameter 1 that is also passed into the report. Here are the
simplified details:
Using SSDT, SQL Server 2008 R2
SSRS report has 2 parameters:
P1 -- text, hidden, default value 'R1', ... front-end C# code can pass 'R2' or 'R1'
P2 -- text, allows multiple values, list of available values provided by stored procedure (sproc_list) that takes P1 value as a parameter. Hence, sproc_list either provides a list for P1 = 'R1' or P1 = 'R2'.
List for P1 = 'R1' is 'A', 'B', 'C'
List for P1 = 'R2' is 'A', 'B', 'D'
Values for P1 and P2 can be passed in via C# to the report.
The C# front-end displays 2 report choices to the user, R1 and R2, where both choices call the same RDL; but choice R1 passes in 'R1' for P1, and the choice R2 passes in 'R2' for P1.
Upon a users 1st time use of the report no parameters are passed in. Then when the user exits the report, the parameter value for P2 that was chosen is saved off to a file for R1 or R2, and used the next time the user selects the report.
Everything always works fine for report R1 since the default value for P1 is 'R1'.
When R2 is chosen and the user selects 'D' as the value for P2, runs the report, then exits, the P2 value of 'D' for R2 is saved to a file. When the user returns the next day to run report R2, 'R2' is passed for P1, and 'D' is passed for P2.
This is when the problem occurs. The value of 'D' for P2 is validated against a list generated for P2 based on the default value of 'R1' for parameter P1. Hence, SSRS considers 'D' an invalid value for P2 and blanks out the P2 parameter.
The user can then use the drop down list for P2 and choose 'D', but this defeats the purpose of saving the parameter values to be used the next time.
Why is the stored procedure that provides a list of available values for parameter P2 using the default value of 'R1' for parameter P1 instead of using the value of 'R2' passed into the report for parameter P1?Hi Tom,
Sorry for my delay.
If I understand correctly, you have two parameter in your report. It is a couple of cascading parameter. If we have choose ‘R1’ of P1, the P2 values is A, B, C. ‘R2’ of P1, corresponding P2 values is A, B, D. What your requirement is to save the end use
select option of these two parameters.
In SSRS, if we have configure the parameter with default value. When we run the report, the parameter will fill with the default value to filter data. If we want to save the last status we are render the report, we need to update the default value of P1.
If we are query the default value from database, if possible, we can
update the database try to resolve the issue. Alternatively, we can set the dynamic default value for the parameter.
Hope this helps.
Regards,
Alisa Tang
Alisa Tang
TechNet Community Support -
Using opendocument for child report
Hello Experts,
One my webi report(parent) is likned with another wei report(child)using hyerlink and opendocument.
Now my requirement is to hide refresh button of child whenever it would get opened (After clicking on hyperlink on parent)
So every time, user clicks on hyperlink on parent report, child report should get opened without 'Refresh' button.
Is there way out to this problem using SDK or url reporting?
Regards,
JohnWith the SDK, you can create your own Web Intelligence viewer. Other than that, there's not way to control the refreshability of a document other than using the security model (i.e., do not give rights to a user to refresh the document).
Sincerely,
Ted Ueda -
Print problem on 9i when the &pagestream=yes
if i print the 9i report when the &pagestream=no, it prints without any problem
but when i set the &pagestream=yes, it gives me some kind of script error
message, and it doesn't print at all
does anybody know how to fix this problem?
thanksrefer this link u may get answer for ur problem.
http://www.zebra.com/id/zebra/na/en/index/industry_solutions/alliances/sap_new/sapsmartforms.html -
Report formatting get disabled with Pagestream=yes
Hi,
I am using Oracle Report Builder 10.1.2.0.2
my Reports are displayed correctly without Pagestream,
but when i putted "Pagestream=yes" in link, then the formatting of the pages get distorted. please help me out
Thanks in Advance
Regards
DevThe PAGESTREAM keyword enables or disables page streaming (pagination) for the report when formatted as HTML or HTMLCSS output, using the navigation controls set by the report developer. rwbuilder cannot use this keyword.
You may want to refer to Appendix A in the Oracle Application Server Reports Services Publishing Reports to the Web manual to know which executables can use the PAGESTREAM keyword. This manual is available on OTN:http://www.oracle.com/technology/documentation/reports.html -
SAP Crystal Reports data source connection problem using sap business one
Hi,
I m facing a problem regarding: SAP Crystal Reports data source connection problem using sap business one
I am trying to create a Crystal report but when I try to configure a new connection it does not work.
I select Sap Business One data source and try to complete the information required to connection but it does not list my companies databases, what is the problem?
Our Current SAP related software details are as follows:
OS: Windows Server 2008
SAP B1 Version: SAP B1 9 (902001) Patch 9
SAP Crystal Report Version: 14.0.4.738 RTM
Database: MS SQL Server 2008 R2
I have also added some screenshots of the issues.
Please have a look and let me know if you have any questions or any further clarifications.
I m eagerly waiting for a quick and positive reply.Hi,
There is problem with SAP Business One date source.
I had faced same problem, I used OLEDB Data-source, and it worked fine for me.
So, try to use OLEDB.
Regards,
Amrut Sabnis. -
XSLT : Problem using xsl:value-of disable-output-escaping="yes"
Hello,
I have some problem using "disable-output-escaping" attribute of xsl:value-of() function.
I have a table SONGS with two columns XML and XSL filled with :
<song>
<title>Isn't she lovely?</title>
</song>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" encoding="UTF-8"></xsl:output>
<xsl:template match="//song">
<out>
<xsl:value-of select="title" disable-output-escaping="yes"></xsl:value-of>
</out>
</xsl:template>
</xsl:stylesheet>The query to transform XML with XSL :
SELECT XMLTRANSFORM (xml, xsl) FROM songs;I get this XML :
<out>Isn't she lovely?</out>but I want that (without the '&' special character) :
<out>Isn't she lovely?</out>How can I procees to succeed ?
Thanks,
DominiqueWhat DB version?
The following SQL
select xmltransform(XMLTYPE('<song>
<title>Isn''t she lovely?</title>
</song>'), XMLTYPE('<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" encoding="UTF-8"></xsl:output>
<xsl:template match="//song">
<out>
<xsl:value-of select="title" disable-output-escaping="yes"></xsl:value-of>
</out>
</xsl:template>
</xsl:stylesheet>'))
from dual;produces this on 11.1.0.6
<?xml version="1.0" encoding="UTF-8"?>
<out>Isn't she lovely?</out>and this on 10.2.0.4
<out>Isn't she lovely?</out>I found a couple of previous discussions regarding this at
{thread:id=679397}
{thread:id=879301}
The last discussion provides a workaround if you need it. -
Problem using webcache with pure jsp report
Hello,
I am not sure if this is the right forum because my problem affects to 3 products
(reports, portal + webcache)
I need to cache a pure oracle reports jsp report.
I included some reports in portal reports security (Portal -> Builder -> Administer -> Reports Security)
http://is.domain:7778/pls/portal/PORTAL.REP_NAME.show
This report is secured and only accessible for granted persons over portal.
Now I also want to cache those reports using webcache.
But there is a problem. As soon as this report is cached, there is no security anymore.
The former secured report is accessible to every user who knows the URL as long the report is in webcache.
There seems to be no SSO Check anymore.
But this check is necessary.
How is it possible to cache this pure jsp report and also have SSO feature as every portal page ?
Regards,
FrankHi Frank,
You may want to contact Oracle Support for detailed configuration procedures on this.
In a nutshell, Reports provides some level of default caching. You can take advantage of that. The Reports Administrator's Guide provides some info on that.
Regards,
Web Cache team -
Using appintegrator with BW reports - Mapping problem
Hi All,
I've been using appintegrator with BW reports for a while.
The portal was connected to BW by ticket and it worked without a problem.
Since a new group of users was added to the portal and the UserID of those users in the portal & BW is not the same I want to change the logon method to user mapping.
Now, I have a problem:
when I try to run bex report I get a popup asking me for username/password (although the user mapping is configured correctly - transactions are running without a problem).
Even if I click the 'cancel' button the report will run so I guess the user/password is passed to the bw.
I use FQDN in the system definition in the portal and in the browser (both systems are on the same domain).
I read note no. 593640, according to the note configuring the /sap/bw/mime service to anonymous login should solve the problem.
Doesn't configuring the service this way will cause security issues? or is it just for eliminating the popup?
Portal is EP6 SP16.
Thanks,
OmriHi Dagfinn Parnas,
The BW definition in EP is indeed user mapping.
The mapping works for transactions without any problem.
For bex reports I get the popup and even then, clicking the 'cancel' button shows the report. It's all explained in note 593640.
Since I'm not a BW person I don't know what defining anonymous login for the MIME service means.
This is a paragraph from the end of the note:
'The /sap/bw/mime service is not authorization-relevant because only constant MIMEs such as JavaScript, images (.gif) or stylesheets can be queried. All data-relevant queries (tables or graphics) are made using /sap/bw/bex.'
I guess it should work but I need to understand what anonymous login means in this case.
Regards,
Omri -
WITH HOLD problem when common_parser=yes compiler option used
Hi guys,
we are using Oracle 11g precompiler and we start using "common_parser=yes" option because of JOIN keyword, but now WITH HOLD in DECLARE CURSOR statements is not supported.
So, the statement :
EXEC SQL DECLARE cur_name CURSOR WITH HOLD FOR SELECTc1, c2 FROM t1
gives an error when "common_parser=yes" is present
PCC-S-02201, Fand das Symbol "WITH" als eines der folgenden erwartet wurde:
for,
and when is not, we can compile this statement but we get the same error for JOIN (and we dont wont to rewrite JOIN statemnts to old syntax with +).
Is this a bug and is there a workaround or solution for this problem?
Thanks in advance,
DO
PS
We also noticed the same problem for LOB statements:
EXEC SQL LOB WRITE ONE :lob FROM :buffer WITH LENGTH :bufferlen ...
Again, WITH is not recognised
Edited by: 976549 on 13.12.2012 02:20Hi,
I don't have much information I can provide but this looks like an unpublished bug: Bug 8436316 - PARSER UNIFICATION: CURSOR WITH HOLD IS NOT SUPPORTED
The best I can say at this time is if you have a support contract to open a Service Request with My Oracle Support for any alternatives.
I know that is not much help but it does seem like this is a known bug (but no workaround that I have seen).
Regards,
Mark -
Query Stripping not working properly when using variable in the report
We have issue with WEBI document that have query stripping enable.
Once the query stripping enabled there is no data return in the report.
We have investigate on the problem, the query stripping function are notable to retrieve objects that indirectly used in the report
as we have
many variable in the reports.
Ex.
Var1 = object1 + object2
Var2 = Object3 + Object4
Var3 = Var1 + Var2
Var4 = Object1 + Object2 + Object3 + Object4
If we use only Var3 in the report, the object1,2,3,and 4 will not be
retrieve.
But if we are using Var4 in the report, the object1,2,3,and 4 will be
retrieve properly.
Please let me know is it a by-design behavior, if yes please share points on itHi Amit,
Thank you for response, however i already had alook on that VIdeo and it tells us about the basic enabling of query stripping.
But my question is when we have a Variable in a report which is dependent on the other two variables it gives me #error so is it by design or not.
Regards,
Abhinav -
Problem in generating oracle 10g reports to rtf Template? (Emergency)
Hi Team,
I had a problem in generating rdf to rtf template.. I had an rdf template with place holders like this
Hi i "Employee" <Empno> and my salary is <Empsal>
but after the generation by using BIBatchConversion , i am getting partial rtf file like this
Hi i "Employee"
i am not getting the rest of the design... do i need to overwrite the rtf manually or do we have any other conversion process when we are using placeholders in rdf reports...
Regards
Bhu1hi...i already done what u had suggested but the error still come up.
DECLARE
RO_Report_ID REPORT_OBJECT;
Str_Report_Server_Job VARCHAR2(100);
Str_Job_ID VARCHAR2(100);
Str_URL VARCHAR2(100);
PL_ID PARAMLIST ;
BEGIN
PL_ID := GET_PARAMETER_LIST('TEMPDATA');
IF NOT ID_NULL(PL_ID) THEN
PAUSE;
DESTROY_PARAMETER_LIST(PL_ID);
END IF;
PL_ID := CREATE_PARAMETER_LIST('TEMPDATA');
RO_Report_ID := FIND_REPORT_OBJECT('REPORT_OBJ');
ADD_PARAMETER(PL_ID, 's_sin_no', TEXT_PARAMETER,:scrap_delivery_request.sin_no);
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_FILENAME, 'C:\New Forms\REF_SF_510.rdf');
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_COMM_MODE, SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_EXECUTION_MODE, BATCH);
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESTYPE, FILE);
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESFORMAT, 'PDF');
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_SERVER, 'rep_edmund.main');
Str_Report_Server_Job := RUN_REPORT_OBJECT(RO_Report_ID, PL_ID);
Str_Job_ID := SUBSTR(Str_Report_Server_Job, LENGTH('rep_edmund.main') + 2, LENGTH(Str_Report_Server_Job));
Str_URL := '/reports/rwservlet/getjobid' || Str_Job_ID || '?server=' || 'rep_edmund.main';
WEB.SHOW_DOCUMENT(Str_URL, '_SELF');
DESTROY_PARAMETER_LIST(PL_ID);
END;
Edited by: baguhan on Jul 4, 2009 12:59 AM -
Problem passing parameter to crystal report subreport from *.aspx page
Background:
I am developing a .NET web application using Visual Studio 2005. The code behind is in VB.net. One of my asp.net pages calls a report, which is invoked when the user clicks a Print button. I have developed this report using the Crystal Reports software that is bundled with Visual Studio 2005. I am passing one parameter from the asp.net page (utilizing the VB.net code-behind on the Print button) to the Crystal report. The report consists of a main report and 5 subreports. Both the main report and the subreports use the same parameter. Both the main report and the subreports are bound to stored procedures, each of which require a parameter.
Problem:
For some reason, the parameter is not being passed from the asp.net page to the report. I am receiving the following error: "CrystalDecisions.CrystalReports.Engine.ParameterField.CurrentValueException: Missing Parameter Values." However, when I remove the subreports, the parameter gets passed, and the report is invoked with no problem.
I have read in other forums that there may be an issue with the Crystal Reports software that is causing this problem. I have downloaded and run the suggested hotfix, but the problem remains unresolved. I have tried changing the linking of my main report to the subreport, but that doesn't help either. It is possible that I am doing something wrong with the linking, as this is the first time I have developed a report with Crystal Reports. I need a workaround or definitive solution. Below is the aspx code used to call the report:
Imports System
Imports System.Collections.Specialized
Imports System.Collections.ObjectModel
Imports System.Collections
Imports System.Text
Imports System.Configuration
Imports System.Data.SqlClient
Imports System.Data
Imports System.Data.SqlClient.SqlDataAdapter
Imports System.Web.Configuration
Imports Crystaldecisions.crystalreports.engine
Imports Crystaldecisions.reportsource
Imports Crystaldecisions.shared
Partial Class OACIS_Award_or_Deny_BudgetSummary_PrintRpt
Inherits System.Web.UI.Page
Dim paramFields As ParameterFieldDefinitions
Dim paramField As ParameterFieldDefinition
Dim paramValue As ParameterValues
Dim paramDiscreteValue As New ParameterDiscreteValue
Public Shared idCase, nameRpt As String
Private PrintRpt As ReportDocument
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Try
idCase = Request.QueryString("id")
nameRpt = Request.QueryString("prtName")
Dim config As Configuration = WebConfigurationManager.OpenWebConfiguration("~/")
Dim settings As AppSettingsSection = DirectCast(config.GetSection("appSettings"), AppSettingsSection)
Dim file As String = settings.File
Dim dSource, iCatalog, userIs, passUser, appString As String
dSource = Nothing
iCatalog = Nothing
userIs = Nothing
passUser = Nothing
appString = config.ConnectionStrings.ConnectionStrings("OacisConn").ToString()
Dim AppArray() As String = Split(appString, ";")
Dim arrayLgth As Integer = AppArray.Length
Dim i As Integer
For i = 0 To arrayLgth - 1
Dim pairIs() As String = Split(AppArray(i), "=")
Dim firstItem As String = pairIs(0)
Dim secondItem As String = pairIs(1)
If firstItem = "Data Source" Then : dSource = secondItem : End If
If firstItem = "Initial Catalog" Then : iCatalog = secondItem : End If
If firstItem = "UID" Then : userIs = secondItem : End If
If firstItem = "PWD" Then : passUser = secondItem : End If
Next
Dim crReportDocument As ReportDocument
Dim crExportOptions As ExportOptions
Dim crDiskFileDestinationOptions As DiskFileDestinationOptions
Dim crconnectioninfo As ConnectionInfo
Dim crDatabase As Database
Dim crtables As Tables
Dim crtable As Table
Dim crtablelogoninfo As TableLogOnInfo
Dim Fname As String
Dim Prtname As String
Dim FPath As String
Dim crSection As Section
Dim crReportObject As ReportObject
Dim crSubreportObject As SubreportObject
Dim subRepDoc As New ReportDocument
FPath = Server.MapPath("") + "\"
Dim rptIs As String = nameRpt
crReportDocument = New ReportDocument
Prtname = FPath
Prtname = Prtname + rptIs
crReportDocument.Load(Prtname)
Fname = "C:\WINDOWS\TEMP\" & Session.SessionID.ToString & ".pdf"
crconnectioninfo = New ConnectionInfo
crconnectioninfo.ServerName = dSource
crconnectioninfo.DatabaseName = iCatalog
crconnectioninfo.UserID = userIs
crconnectioninfo.Password = passUser
crDatabase = crReportDocument.Database
crtables = crDatabase.Tables
For Each crtable In crtables
Try
crtablelogoninfo = crtable.LogOnInfo
crtablelogoninfo.ConnectionInfo = crconnectioninfo
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.SetDataSource(Prtname)
crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
crtablelogoninfo.ConnectionInfo.UserID = userIs
crtablelogoninfo.ConnectionInfo.Password = passUser
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.Location = iCatalog + ".dbo." + crtable.Name
Catch ex As Exception
Response.Write(ex)
Exit Sub
End Try
Next crtable
For Each crSection In crReportDocument.ReportDefinition.Sections
For Each crReportObject In crSection.ReportObjects
If crReportObject.Kind = ReportObjectKind.SubreportObject Then
crSubreportObject = CType(crReportObject, SubreportObject)
subRepDoc = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
For Each crtable In subRepDoc.Database.Tables
Try
crtablelogoninfo = crtable.LogOnInfo
crtablelogoninfo.ConnectionInfo = crconnectioninfo
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.SetDataSource(Prtname)
crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
crtablelogoninfo.ConnectionInfo.UserID = userIs
crtablelogoninfo.ConnectionInfo.Password = passUser
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.Location = iCatalog + ".dbo." + crtable.Name
Catch ex As Exception
End Try
Next
End If
Next
Next
crDiskFileDestinationOptions = New DiskFileDestinationOptions()
crDiskFileDestinationOptions.DiskFileName = Fname
crExportOptions = crReportDocument.ExportOptions
With crExportOptions
.DestinationOptions = crDiskFileDestinationOptions
.ExportDestinationType = ExportDestinationType.DiskFile
.ExportFormatType = ExportFormatType.PortableDocFormat
End With
Dim parIDCase As ParameterValues = New ParameterValues
Dim disIDCase As ParameterDiscreteValue = New ParameterDiscreteValue
disIDCase.Value = idCase
parIDCase.Add(disIDCase)
crReportDocument.DataDefinition.ParameterFields("@ID_CASE_NMBR").ApplyCurrentValues(parIDCase)
crReportDocument.Export()
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/pdf"
Response.WriteFile(Fname)
Response.Flush()
Response.Close()
System.IO.File.Delete(Fname)
Catch ex As Exception
lblMessage.Visible = True
lblMessage.Text = "Error Load
" & Convert.ToString(ex)
End Try
End Sub
End Class
Your help is greatly appreciated!Thanks for your help!
I've now gotten past the "missing parameter values" error, and the report renders fine in the report viewer. However, I've encounted another problem. The data in my main report displays correctly, but the data in my subreport does not display. Of course, when I view the report in the designer, both the main report and subreport display correctly. What am I doing wrong? Below is my vb.net code:
Try
idCase = Request.QueryString("id")
nameRpt = Request.QueryString("prtName")
Dim config As Configuration = WebConfigurationManager.OpenWebConfiguration("~/")
Dim settings As AppSettingsSection = DirectCast(config.GetSection("appSettings"), AppSettingsSection)
Dim file As String = settings.File
Dim dSource, iCatalog, userIs, passUser, appString As String
dSource = Nothing
iCatalog = Nothing
userIs = Nothing
passUser = Nothing
appString = config.ConnectionStrings.ConnectionStrings("OacisConn").ToString()
Dim AppArray() As String = Split(appString, ";")
Dim arrayLgth As Integer = AppArray.Length
Dim i As Integer
For i = 0 To arrayLgth - 1
Dim pairIs() As String = Split(AppArray(i), "=")
Dim firstItem As String = pairIs(0)
Dim secondItem As String = pairIs(1)
If firstItem = "Data Source" Then : dSource = secondItem : End If
If firstItem = "Initial Catalog" Then : iCatalog = secondItem : End If
If firstItem = "UID" Then : userIs = secondItem : End If
If firstItem = "PWD" Then : passUser = secondItem : End If
Next
Dim crReportDocument As ReportDocument
Dim crExportOptions As ExportOptions
Dim crDiskFileDestinationOptions As DiskFileDestinationOptions
Dim crconnectioninfo As ConnectionInfo
Dim crDatabase As Database
Dim crtables As Tables
Dim crtable As Table
Dim crtablelogoninfo As TableLogOnInfo
Dim Fname As String
Dim Prtname As String
Dim FPath As String
Dim crSection As Section
Dim crReportObject As ReportObject
Dim crSubreportObject As SubreportObject
Dim subRepDoc As New ReportDocument
FPath = Server.MapPath("") + "\"
Dim rptIs As String = nameRpt
crReportDocument = New ReportDocument
Prtname = FPath
Prtname = Prtname + rptIs
crReportDocument.Load(Prtname)
Fname = "C:\WINDOWS\TEMP\" & Session.SessionID.ToString & ".pdf"
crconnectioninfo = New ConnectionInfo
crconnectioninfo.ServerName = dSource
crconnectioninfo.DatabaseName = iCatalog
crconnectioninfo.UserID = userIs
crconnectioninfo.Password = passUser
crDatabase = crReportDocument.Database
crtables = crDatabase.Tables
For Each crtable In crtables
Try
crtablelogoninfo = crtable.LogOnInfo
crtablelogoninfo.ConnectionInfo = crconnectioninfo
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.SetDataSource(Prtname)
crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
crtablelogoninfo.ConnectionInfo.UserID = userIs
crtablelogoninfo.ConnectionInfo.Password = passUser
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.Location = iCatalog + ".dbo." + crtable.Name
Catch ex As Exception
Response.Write(ex)
Exit Sub
End Try
Next crtable
For Each crSection In crReportDocument.ReportDefinition.Sections
For Each crReportObject In crSection.ReportObjects
If crReportObject.Kind = ReportObjectKind.SubreportObject Then
crSubreportObject = CType(crReportObject, SubreportObject)
subRepDoc = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
For Each crtable In subRepDoc.Database.Tables
Try
crtablelogoninfo = crtable.LogOnInfo
crtablelogoninfo.ConnectionInfo = crconnectioninfo
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.SetDataSource(Prtname)
crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
crtablelogoninfo.ConnectionInfo.UserID = userIs
crtablelogoninfo.ConnectionInfo.Password = passUser
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.Location = iCatalog + ".dbo." + crtable.Name
Catch ex As Exception
End Try
Next
End If
Next
Next
crDiskFileDestinationOptions = New DiskFileDestinationOptions()
crDiskFileDestinationOptions.DiskFileName = Fname
crExportOptions = crReportDocument.ExportOptions
With crExportOptions
.DestinationOptions = crDiskFileDestinationOptions
.ExportDestinationType = ExportDestinationType.DiskFile
.ExportFormatType = ExportFormatType.PortableDocFormat
End With
crReportDocument.SetParameterValue("@ID_CASE_NMBR", idCase)
crReportDocument.SetParameterValue("@ID_CASE_NMBR", idCase, "MemberName")
crReportDocument.Export()
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/pdf"
Response.WriteFile(Fname)
Response.Flush()
Response.Close()
System.IO.File.Delete(Fname)
Catch ex As Exception
lblMessage.Visible = True
lblMessage.Text = "Error Load<br>" & Convert.ToString(ex)
End Try
Edited by: LaShandra Knox on Sep 17, 2008 7:59 PM -
Problem using a conditional suppress in a cross-tab ?
is there a problem using a conditional suppress in a cross-tab on a row or summarized field in crystal XI?
I am using the following conditional suppress on a summarized field and its rows
If {@SortCode}=4 then true;
Sortcode is a group sorting formula field
the summarized field is a formula field as well.
All of the summarized fields are suppressed although the cross- tab performs correctly on @Sortcode and the summarized field when not using the condition
it seems to me to be a reporting flow issue although i've included "whileprintingrecords" and "evaluateafter" with no success.
i have also moved the cross-tab from the report header to group header and applied a conditional suppress on the group header through section expert.
this supresses the group i dont want but includes grand totals for each group and also varys the number of columns
i can't filter on sortcode because one of the grand total calculations requires those records and a subreport or second cross-tab does not contain the same number of columns
the cross-tab is necessary as a client may have columns spanning one to many pages
thanks for your helpHi I have a similar problem,
I have an clock in solution, where i have some dates with data such as, various entries for a date eg, 01/11/2010 1hr, 01/11/2010 3 hrs etc, 03/11/2010 2hrs , 05/11/2010 4.5hrs, 05/11/2010 4 hrs so i need total for each day and highlight only those days, where total is less than 4.5, including days which donu2019t have records eg 02/11/2010 & 04/11/2010, I summarise in totals using a cross tab, to get summarised output for each day as,
Totals
01/11/2010 4
03/11/2010 2
05/11/2010 8.5
in order to get the dates which didnu2019t have records, i added a dataset from Excel spreadsheet where i just have a sequential dates for the year , and use record selection to select only those dates in range which i need to display, so the result i get
01/11/2010 4
02/11/2010 0
03/11/2010 2
04/11/2010 0
05/11/2010 8.5
so far so good, all using cross tab, now i want to suppress rows which have total > 4.5 so the result should be
01/11/2010 4
02/11/2010 0
03/11/2010 2
04/11/2010 0
How can i do that? -
Problem while importing a Crystal Report in SAP Business One
Hi Experts,
I am facing a problem while importing a Crystal Report in SAP Business One, it displaying an error "No matching records found 'Queries' (OUQR) (ODBC -2028) [Message 131-183]" , and there is no use of this table OUQR in the Query.
Kindly let me know the solution.
Regards
Rahul SinghHi Rhaul,
i don't exactly know why this is a problem, but if your not on latest (881 p10) then upgrade and try again.
Or as a workaround,
try saveing from CR to SAP with the CR add-on. That usualy works better then the import.
Regards,
D
Maybe you are looking for
-
Can I use one apple id to manage two seperate itunes libraries on two seperate pc's?
First time forum user, bear with me. I have two seperate PCs with two seperate ITunes loaded (both completely dependant of each other). On itunes and one pc manages my ipod, i now wnat a seperate pc and itunes to manage my iphone. Can I use the same
-
I restored my iphone because I have hundreds of apps and wouldn't want to delete them. Well I don't want to exactly permanently delete them. I just want them off my iphone as it makes it laggy and kills the battery. So I backed it up. However, I am w
-
Weblogic server 9.1 upgrade problem
We had our application running on WLS 8.1. Trying to upgrade to 9.2 using teh upgrade.sh script ( which uses 'java weblogic.Upgrade' inside ). Even after it has reported that it has successfully upgraded the domain, when I login using the admin conso
-
ESS EhP3 Foreign Address Error
We are using EhP3 ESS. We have added 4 country entries in V_T7XSSPERFORADD (for various infotypes and subtypes]) and we see all 4 on ESS screen. When an UK user selects a country other than 'Great Britain' on the Address screen while adding a new ad
-
I wanted to restore just the appointments file to my 8310, so I used the Advanced button. However, the Desktop Manager could find no backup file. That is the window on the left remained empty. As a test, I backed up my BB and it went to the same f