PASSING A CR2008 REPORT NAME TO CRVIEWER
Please bear with me since I'm new to this part of VS2005/cr2008. I have created a form using vc2005 where i have the crViewer in the form. If I hard code a cr2008 report name in the the report souce area, when I run the form, the report gets displayed. However, what I need to do is to have this form accept a different cr2008 report file name each time. I took a look at your examples, but they all have the reportsource as hard coded...
is there away where I can create s skeleton vs2005 form that will accept and display a cr2008 report file ?? I was able to do this using visual foxpro and version 8.5 and version 10 but i can;'t geet it to work in vs2005...any comments greatly appreciated or of you can point me to some documentation about this wonderfull...thanks in advance...
i am currently using the evaluation copy of cr2008...and vb2005 to create the crviewer for the report.
this is my code...
Public Class Display_report
Dim m_reportsource As String
Private Sub CrystalReportViewer1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles CrystalReportViewer1.Load
' m_reportsource = "c:\airs_crreports\client_agency_referral.rpt"
MessageBox.Show(m_reportsource)
CrystalReportViewer1.ReportSource = m_reportsource
End Sub
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub
Private Sub reportDocument1_InitReport(ByVal sender As Object, ByVal e As System.EventArgs) Handles reportDocument1.InitReport
End Sub
Private Sub reportDocument1_RefreshReport(ByVal sender As Object, ByVal e As System.EventArgs) Handles reportDocument1.RefreshReport
End Sub
End Class
hope this helps
Similar Messages
-
Passing report name to be used in distrubute destination file?
How can I pass the report_name used in %1 in my cgicmd.dat file to be used in my dest.xml file. Otherwise I am going to have to have a lot of destination xml files (one for each report)
In my cgicmd.dat file i have the following:
pm_report:report=%1 destype=cache DISTRIBUTE=YES destination=/home/oracle9i/dst/dest.xml server=rep userid=x/x@x %*
which uses the dest/xml of:
<destinations>
<file id="MyFiles1" name="/home/reports/output/Daily_Volume_Delays.pdf" format="pdf">
<include src="report"/>
</file>
<file id="MyFiles2" name="/home/reports/output/Daily_Volume_Delays.htm" format="html">
<include src="report"/>
</file>
</destinations>Hi,
One distribution file can be used to output to different output formats like html, pdf, rtf, etc. For example, the sample distribution file you wrote in your earlier post will output the report into html and pdf formats. So you do not need to have a separate distribution file for every output format.
Similarly, passing the report name is not an issue. The distribution file does not care about the report name. You can use a single distribution file for all reports - just pass the report name in the command.
However, you may still need a separate distribution file for every report definition. The reason is that if you use a single file for all report definition files, then the output report name will be the same for all reports (eg, "Daily_Volume_Delays.pdf"), that is, they will overwrite the previous output with same filename.
You can get more information about distribution in Publishing Reports 10g Chapter 15 (Creating Advanced Distributions):
http://otn.oracle.com/documentation/reports.html
Navneet. -
Templates and Passing a Report Name
I need to create a template and have the report name passed on to that template, but I need a bit more detailed of an explanation then the following:
Create a user parameter on the template and then pass the report name to the parameter at run time.I wish to have the report name sent to the template so that at runtime the report name will show. I have created a parameter for this to be passed to, and put a field in the header of the template to accept the parameter: what I need to know is how do you send the name of the report which exists in the property palette under -Report -General Information - Name node to the field on the template so it shows at runtime.
Thanks -
Passing report name as report title
Using Desktop Publisher for Word and a standalone BIP Enterprise version, is it possible to pass the report name to the rtf template so that it could be used as the report title?
This feature would be useful when there are multiple reports (different names and slightly different queries/criteria) that use the same templates. We could then dynamically change the report title based on the report name.
Thanks,
HareshHaresh,
I'm not sure if there is any simple way to print report name in rtf template.
But there is a work around. Follow below steps...
1>create parameter called Report_Name in every report
2>put default value for that parameter as report name (Title)
3>select parameter type as Hidden
Now in rtf template.
<?param@begin:Report_Name?>
<?$Report_Name?> -
Passing report name to Labview
i am more than new to Teststand, have read the whole answers that might match my question but i found no way to have my problem solved!!
in most answers there were reffered to ReportOptions thing which i could not find at all ..
so how could i pass the report name which i need to a vi .. and is it bad to put this step in the cleanup .. as to be sure that all other steps in the main section were executed!??
thanks alot ...Just use this expression "RunState.Root.Locals.ReportFilePath", in your Main Sequence, it will return the Path of the Report File, you can pass directly this string to the LabVIEW modules.
AshwiN, -
Pass along Crystal Report file name on export to Excel
Hello, I am using Crystal Reports 10 and create numerous Crystal reports, all of which end up being exported out to Excel. Is there a way to export the name of the Report or its file name out to Excel as well? I work with so many reports that I can't always trace back the Excel version of the report back to its Crystal report roots.
Thank you.Hi
In field explorer Use Special Field called File Path and Name drag and place it in Report Header
If you want just the report Name then use Report Title.
Cheers
Rahul -
Difficulty in using a variable to pass a list of names between 2 tables
Hi All,
I am trying to pass a list of names from one table as a variable to another table and trying to find the Highest level they exist at in the hierarchy. I am having some troubles with the variable and need some guidence and also if this should be a procedure or not.
this is what i have now :
Variable man_name Varchar;
exec :man_name = (Select full_name from direct_manager_report)
UPDATE direct_manager_report
Set Manager_level_number =
(Select 'Manager_Level_0' from manager_hierarchy where level_0_manager_name = man_name
UNION
Select 'Manager_Level_1' from manager_hierarchy where level_0_manager_name < > man_name AND level_1_manager_name = man_name
UNION
Select 'Manager_Level_2' from manager_hierarchy where level_1_manager_name < > man_name AND level_2_manager_name = man_name
UNION
Select 'Manager_Level_3' from manager_hierarchy where level_2_manager_name < > man_name AND level_3_manager_name = man_name
Where full_name = man_name;
Let me know what modifications have to be done for this the variable to get the name from table 1 and find the manager level from table 2 and populate it back in table 1.
Any help is appreciated.
ThanksFrank Kulash wrote:
Hi,Thanks for your reply. I am sorry for not providing enough information.
What's wrong with what you have now? I want to pass the manager name (about 2000) from direct_manager_report to the variable which i pass to manager_hierarchy table to find the highest level for each manager
If it doesn't give the right results, then how is anyone except you to know what the right results are?
Variable man_name Varchar;
exec :man_name = (Select full_name from direct_manager_report)Does that really work for you?No thats why i said this is what i have and i am trying to see the best to past the list of manager names to get the level number.
UPDATE direct_manager_report
Set Manager_level_number =
(Select 'Manager_Level_0' from manager_hierarchy where level_0_manager_name = man_name
UNION
Select 'Manager_Level_1' from manager_hierarchy where level_0_manager_name < > man_name AND level_1_manager_name = man_nameIt looks like something is missing on the line above. Did you mean "level_0_manager_name != man_name"?
This site doesn't like to display the <> inequality operator. Always use the other (equivalent) inequality operator, !-, when posting here.
UNION
Select 'Manager_Level_2' from manager_hierarchy where level_1_manager_name < > man_name AND level_2_manager_name = man_name
UNION
Select 'Manager_Level_3' from manager_hierarchy where level_2_manager_name < > man_name AND level_3_manager_name = man_name
Where full_name = man_name;Are you sure the UNION will never return more than 1 row?
Let me know what modifications have to be done for this the variable to get the name from table 1 and find the manager level from table 2 and populate it back in table 1.Whenever you have a problem, post a little sample data (CREATE TABLE and INSERT statements) and the results you want from that data (in this case, the contents of table1 after everything is finished).
See the forum FAQ {message:id=9360002}Sorry did not realize the missing !. Yes the union will always return one record for each manager name passed. I have tested the select part which hard coding the manager name and it does update the level number correctly. but i am struggling with passing a large list of values as a variable.
This is the output i am looking for in the direct manager report table is :
Manager Name | Manager Level Number
ABC Manager Level 0
XYZ Manager Level 1
This is the structure of the manager hierarchy:
Manager Level 0 Manager Level 1 Manager Level 2...Manager Level 14
ABC ABC ABC ABC
ABC XYZ XYZ XYZ
Let me try the below but hopefully i am more clear on the requirement now.
>
You may want something like this
MERGE INTO direct_manager_report dst
USING (
SELECT dmr.full_name
, 'Manager_Level_'
|| MIN ( CASE dmr.full_name
WHEN level_0_manager_name THEN '0'
WHEN level_1_manager_name THEN '1'
WHEN level_2_manager_name THEN '2'
WHEN level_3_manager_name THEN '3'
END
) AS manager_level_number
FROM manager_hierarchy dmr
JOIN manager_hierarchy mh ON dmr.full_name IN ( level_0_manager_name
, level_1_manager_name
, level_2_manager_name
, level_3_manager_name
GROUP BY dmr.full_name
) src
ON ( dst.full_name = src.full_name )
WHEN MATCHED THEN UPDATE
SET dst.manager_level_number = src.manager_level_number
Edited by: user599926 on Jun 4, 2013 9:41 PM -
How to use Submit in background when report name is not static
Hi all,
I have an FM to which report name is being sent as an input parameter.
So based on the report name I need to call that particular report in background and send the output as a HTML format to dealer's MAIL ID which is also sent as an input param.
The logic for sending mail in background is achieved.
I am using the followinf logic to submit the job.
SUBMIT wf_report USER user_id VIA JOB lv_jobname NUMBER lv_jobcount
to sap-spool immediately ' '
without spool dynpro
WITH SELECTION-TABLE tb_seltab AND RETURN.
wf_report holds the dynamic value of report.
Here, tb_seltab holds various parameters and select-option values.Since I cannot pass a table to JOB_SUBMIT fm i had to use the SUBMIT statement.
But the program dumps coz we need to explicitly mention the name of the program in the submit statement.
Is there any other possibility to acheive this req when the report name is not going to be hardcoded?
Thanks in advance.
Regards,
Chandra.You forgot the basics of using the SUBMIT.
try like this it will work
SUBMIT (wf_report ) USER user_id VIA JOB lv_jobname NUMBER lv_jobcount
to sap-spool immediately ' '
without spool dynpro
WITH SELECTION-TABLE tb_seltab AND RETURN.
Rhea. -
Passing parameter to report title
I am working with drill down report. My master ( Source ) report has
Emp #, Emp Name, Address columns.
I have prompt on Emp Name column. My second (target) has other employee details and report title is “ Individual Detail report for Employee” but my user is asking they want to display report name with employee name .( passing parameter to report title) . I mean in source report if I click on “Roy Rine” target report should display with following title
“Individual Detail report for Roy Rine”
Can I do this one with OBIEE? Please help me.
Thanks for your timeIts working but it is repeating names . i mean i have 4 people hvae name "Roy Jermon" . if i click on this column
report is displaying ' INDIVIDUAL REPORT FOR ROY JERMON ROY JERMON ROY JERMON ROY JERMON"
is ther any way we can control for only one time even if we have mutiple values.
i am really appriciate for your time. -
How can we pass the master report value in to detail report
Hi All,
My question is how can I pass the master report value in to detail (Child) report filter?
I mean I have one master report if I click on employee name then I have to pass the employee id in to details report filter. Then detail report will display data for that particular employee.
How can I achieve this one in OBIEE?
Please help me to resolve this issue. Thanks in advance for your time and support.In that case, you should look at using Go Url. In your column formula for the employee name, create a hyperlink to the detail report and pass the employee id.
Take a look at this post: Re: Dyanmic display of the Image Link URL
Thanks! -
Serial Number in report name aswell as report body ?
Hello
I am fairly new to TS, I am using the Single Pass Execution entry point with a sequence I have written. I have written my own LabVIEW based Barcode Scanning Module for getting the DUT Serial Number from the user (As the Single Pass doesn't include this) I then write the output of this module to RunState.Root.Locals.UUT.SerialNumber and voila the Serial Number entered appears in the header of my report however the report name still says {No UUT Serial Number} {Time} {Date}
How can I get the S/N into the filename ?
Thanks
ChrisChris,
You can use the ReportOptions BaseName variable to contain the serial number that you want to appear in the report’s filename. If you’re using the SinglePass execution, try copying the ReportOptions callback from the process model and placing it into your sequence. The default ReportOptions is blank so you can add your own method of obtaining the serial number from the DUT. Once you have the DUT S/N, copy it into the Parameters.ReportOptions.BaseName string so that it will appear in the filename. Copy the S/N into the variable, RunState.Root.Locals.UUT.SerialNumber to have it appear into the Report header.
Hope this helps, Please see the attached example TS3.1 sequence file.
Todd
Attachments:
SN_in_report_filename.seq 38 KB -
Calling a cr2008 report from a vs2005 dev in web mode
We have developped a web application with vs2005 (vb.net/asp).
we try to call a CR2008 report developped separately with the CR2008 (in the box).
on the dev (local)pc it runs fine but as soon as we try to do the same on a production iis server it does not work, despite we have implemented on the production server the msi files founded in the download section of this website.
in fact the system show a page in which it appears that the calling reports needs more informations the server, database, login are filled but even if we fill the password nothng append....
we use an ole db (ado) connection.
we have passed a lot of time trying to find information on this but without success ..so if anyone could help us it would be great.(we are free to send our sources and data connection if necessary) Thank you in advance.Hi,
Please check that if the reports have been developed using SQL native client then it should also be installed on the server.
To check database connection information follow the given steps -
1.Open the report in CR Designer, then open Field Explorer.
2.Right click on Database Fields and then click on "Set Datasource Location"
3.In "Current Data Source" expand properties
and their you will get each and every information about the database connection of the reports.
Give it try by installing this exe - http://download.microsoft.com/download/2/7/c/27c60d49-6dbe-423e-9a9e-1c873f269484/sqlncli.msi on your server, it will install the SQL native client.
Hope it helps!!
Regards,
Amit -
Pass parameter to report paramater form from a form
I defined parameter in a form. I am trying to pass the parameters to a report's parameter form. Is there any way to accomplish this?
Thank you!Maybe this example will help. This can be added in a when button pressed event to run the report.
DECLARE
pl_id ParamList;
subheader varchar2(1000);
BEGIN
** Check to see if the 'tmpdata' parameter list exists.
pl_id := Get_Parameter_List('tmpdata');
** If it does, then delete it before we create it again in
** case it contains parameters that are not useful for our
** purposes here.
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;
** Create the 'tmpdata' parameter list afresh.
pl_id := Create_Parameter_List('tmpdata');
** Add 1 data parameters to this parameter list
*/ -- subheader is a parameter created in Oracle Reports
subheader := :variable.txt_message_yes;
Add_Parameter(pl_id,'SUBTITLE',TEXT_PARAMETER,subheader );
**Pass a Parameter into PARAMFORM so that a parameter dialog will not appear
**for the parameters being passing in.
Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
** Run the report synchronously, passing the parameter list
*/ -- ABC is the report name
Run_Product(REPORTS, 'ABC', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id, NULL);
END;
null -
Hello to anyone!!!
I wonder if there is a way to print on the report header the file name of the report (e.g. myreport.rdf) in a parametric way..
You could send me a reply here or in the following address
[email protected]
Thanks a lot!Create a user parameter and set it's default value to the name you're saving the file as. If the filename does change, you can still pass in the new name without having to modify the report.
You can get the name of the report displayed using srw.get_report_name(). -
I wish to have the report name sent to the template so that at runtime the report name will show. I have created a parameter for this to be passed to, and put a field in the header of the template to accept the parameter: what I need to know is how do you send the name of the report which exists in the property palette under -Report -General Information - Name node to the field on the template so it shows at runtime.
hello,
with patch 4 there is a procedure called srw.get_report_name(v_name); that retuns the report-name.
regards,
the oracle reports team
Maybe you are looking for
-
How can I play album songs in correct sequence?
How can I play album songs in their correct sequence -- without having to create a playlist for each album? I like to play songs from my primary "Music" Library, sorting to albums or songs via it. I've imported songs from albums that for some reason
-
I cannot update Safari! My iMac is running Lion. I try using Software Update but it tells me everything is okay. My current version of Safari is 4.0.4 Very out of date. My problem seems to be only with Safari. Can anyone tell me how to manually
-
JButton shows depressed state in 1.4.2 under Windows l&f
We have an application that is showing a pressed state on a JButton that we previously did not have. Currently this is happening under the Windows look-and-feel. We don't want that pressed look on particular buttons, but do want to keep the rest of t
-
Plant assigned to sales org and dist channel
Hi All, Can we have multiple plants assigned to a given sales organization and distribution channel? Thanks, Rakesh.
-
Hey everybody, I'm having a problem with my Macbook Pro. I have boot camp installed and I can boot into Windows XP with no problems. However, every time I try and boot into Mac OS, the computer shuts off entirely. Any recommendations on how to move f