Report File Path Directory
How can i get the definitive report file path in teststand V3.0
Hi,
The report file path is generated inside of the process model. If you look at the Test UUTs entry point inside of the SequentialModel.seq, you will see a C/C++ Adapter step called "Determine Report File Path". After this step executes, the variable Locals.ReportFilePath inside of the entry point contains the full path to where the report will be saved. Let me know if this is what you are looking for.
Ryan
Similar Messages
-
Our project is using TestStand 2012 SP1.
We are using reportgen_txt.seq. and SequentialModel(.seq).
My goal is to save report files to a specific directory only when I run my Self_Test.seq.
I'm attempting to use Configure >> Report Options >> Generate Report File Path.
Setting in "Report Options" dialog >> "Generate Report File Path" tab:
Type Model: Sequential
File Name/Directory Options: Specify Report File Path by Expression
This is the expression that I'm using:
"<ClientFileName>" == "Self_Test" ? "C:\\Reports\\Self-test\\<ClientFileName>_Report[<UUT>][<FileTime>][<FileDate>]<Unique>.<FileExtension>" : "C:\\Reports\\<UUT>\\<ClientFileName>_Report[<UUT>][<FileTime>][<FileDate>]<Unique>.<FileExtension>"
The statment passes syntax check with "no errors".
Running Self_Test.seq using the sequence editor, the report file always goes to path in Red.
Is there a method to accomplish this?
Solved!
Go to Solution.Hi Leroy/jigg,
You are correct that the expression itself is evaluated before the Macro strings are resolved, so this approach won't work. The macros are evaluated using modelsupport2.dll (DetermineReportFilePathNameExprEx function), which first evaluates the expression before resolving the macros. For implementing a custom report file path expression for a particular client file, I would recommend overriding the ReportOptions callback, then programatically setting the report path expression, using an expression such as:
Parameters.ReportOptions.ReportFileSequentialModelExpression = "\"MyCustomLocation\\<ClientFileName>_Report[<FileTime>][<FileDate>].<FileExtension>\""
Note the use of double quotes since the field is an expression field. This approach will also allow you to use logic in the callback to change the report file path string using TestStand flow control steps.
Al B.
Staff Software Engineer - TestStand
CTA/CLD -
Invalid report File path-crystal report
Hi Every one,
I created Crystal Layout for GRPO PLD.When I am trying to import it is showing 'Invalid report file path',But it is working fine in another server.
Please suggest.
Thanks and Regards
DEVHi,
Not sure below SAP note related to above issue:
1710613 - CR_Multiple Data Sources Not Recognized After Importing
Multi-Database Crystal Reports
1668274 - Print Draft with Crystal Layout
Thanks & Regards,
Nagarajan -
Problem in Loading - Invalid Report File Path
Post Author: a_Mohammad
CA Forum: .NET
Im using CR which came as a bundle with VS2005. I deployed my ASP.NET project on online server. Sometimes, When users try to load the reports, they got an error says "Invalid Report File Path" appears at the top of the report, and no data shown. If i reset the IIS, it return to work fine again.
Usually i got this error when there is a lot of hits on the server and reports..
Can you plz advice on that???Hello ,
The formula must always return some value. When a conditional test produces no result and this code is responsible for the RETURN in a formula, the error occurs. Make sure that the condition returns a value in all cases (trap errors).
Example:
Problem code
function CF_1Formula return Number is
begin
if :deptno = 10 then
return(10);
end if;
end;
If deptno is not 10 , this does not return any value .
Correct code
You can write the function as:
function CF_1Formula return Number is
begin
if :deptno = 10 then
return(100);
else
return(200);
end if;
end;
Thanks
The Oracle Reports Team -
Invalid Report File Path Error
I have included several Crystal Reports as embedded resources in a Visual Studio 2010 C# project. When I try to run the application on a client PC I receive an invalid report file path error. Why am I receiving this error if the rpt is embedded in the manifest?
The following code now works on my development machine. It obtains the server name and database name from the configuration file. When I run on my client PC, however, it prompts me to log into the database. It provides the correct server name but the database name is blank and integrated security is not checked. The database name field is not enabled so I cannot provide a value.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CrystalDecisions.CrystalReports.Engine; //jp
using CrystalDecisions.Shared; //jp
namespace WindowsFormsApplication1
public partial class FormRptArtist : Form
private CrystalReport1 crReportDocument = new CrystalReport1();
public FormRptArtist()
InitializeComponent();
ToolTip toolTip = new ToolTip(); toolTip.SetToolTip(btnHelp, "Flash Video Training / Help");
helpProvider1.HelpNamespace = GlobalClass.gb_help;
private void FormRptArtist_Load(object sender, EventArgs e)
TableLogOnInfos crtableLogoninfos = new TableLogOnInfos();
TableLogOnInfo crtableLogoninfo = new TableLogOnInfo();
ConnectionInfo crConnectionInfo = new ConnectionInfo();
Tables CrTables;
bool repeat = true;
while (repeat)
try
crConnectionInfo.ServerName = Properties.Settings.Default.CrystalServer;
crConnectionInfo.DatabaseName = Properties.Settings.Default.CrystalDatabase;
crConnectionInfo.IntegratedSecurity = true;
CrTables = crReportDocument.Database.Tables;
foreach (CrystalDecisions.CrystalReports.Engine.Table CrTable in CrTables)
crtableLogoninfo = CrTable.LogOnInfo;
crtableLogoninfo.ConnectionInfo = crConnectionInfo;
CrTable.ApplyLogOnInfo(crtableLogoninfo);
crystalReportViewer1.ReportSource = crReportDocument;
crystalReportViewer1.Refresh();
break;
catch (Exception exp)
MessageBox.Show(exp.Message);
DialogResult result1 = MessageBox.Show("Try Again?", "Database Connection Error",
MessageBoxButtons.RetryCancel);
if (result1 == DialogResult.Retry)
FormCrystalParms newWindow = new FormCrystalParms();
newWindow.ShowDialog();
else
repeat = false;
private void CrystalReport11_InitReport(object sender, EventArgs e)
private void btnHelp_Click(object sender, EventArgs e)
GlobalClass.displayflashhelp(this, "formrptartist");
private void crystalReportViewer1_Load(object sender, EventArgs e) -
Invalid report file path.
I have a .NET C# Web App with embedded Crystal Reports (version 10.2.3600) running on Windows Server 2003 Standard Edition (Service Pack 2). Every few days the reports generate errors and we have to restart IIS to get them to run again. I cannot figure out what is causing the system to lock up. The error I am getting is 'Invalid report file path.' Do you know what would cause this to happen?
this is the C# code we used to fix this issue:
private ReportDocument CrystalRpt;
//Declaring these here and disposing in the Page_Unload event was the key. Then the only other issue was the
// limitations of Crystal 11 and simultaneous access to the rpt file. I make a temp copy of the file and use that in the
// method. Then I delete the temp file in the unload event.
private ReportDocument mySubRepDoc;
private ReportClass ReportObject;
private string tmpReportName;
protected void Page_UnLoad(object sender, EventArgs e)
Try
CrystalReportViewer1.Dispose();
CrystalReportViewer1 = null;
CrystalRpt.Close();
CrystalRpt.Dispose();
CrystalRpt = null;
mySubRepDoc.Close();
mySubRepDoc.Dispose();
mySubRepDoc = null;
ReportObject.Close();
ReportObject.Dispose();
ReportObject = null;
GC.Collect();
File.Delete(tmpReportName);
catch
{ ...Error Handler }
protected void Page_Load(object sender, EventArgs e)
CrystalRpt = new ReportDocument();
ConnectionInfo CrystalConn = new ConnectionInfo();
TableLogOnInfo tblLogonInfo = new TableLogOnInfo();
ReportObject = new ReportClass();
TableLogOnInfo CrystalLogonInfo = new TableLogOnInfo();
ParameterField CrystalParameter = new ParameterField();
ParameterFields CrystalParameters = new ParameterFields();
ParameterDiscreteValue CrystalParameterDV = new ParameterDiscreteValue();
TableLogOnInfo ConInfo = new TableLogOnInfo();
SubreportObject mySubReportObject;
mySubRepDoc = new ReportDocument();
//Report name is sent in querystring.
string ReportName = Request.QueryString["ReportName"];
// I did this because Crystal 11 only supports 3 simultaneous users accessing the report and
// we have up to 60 at any time. This copies the actual rpt file to a temp rpt file. The temp rpt
// file is used and then is deleted in the Page_Unload event
Random MyRandomNumber = new Random();
tmpReportName = ReportName.Replace(".rpt", "").Replace(".ltr", "") + MyRandomNumber.Next().ToString() +".rpt";
File.Copy(ReportName, tmpReportName, true);
CrystalRpt.Load(tmpReportName); -
Invalid Report File Path (URGENT)
Post Author: a_Mohammad
CA Forum: Publishing
Im using CR which came as a bundle with VS2005. I deployed my ASP.NET project on online server. Sometimes, When users try to load the reports, they got an error says "Invalid Report File Path" appears at the top of the report, and no data shown. If i reset the IIS, it return to work fine again.
Usually i got this error when there is a lot of hits on the server and reports..
Can you plz advice on that???
Thx in AdvanceHello Shweta,
Thanks for responding. I load the report using the Report.Load(Filepath) command. The reports are located on a seperate machine within the network. The error occurs after the form has been loaded, parameters have been determined and margins have been set, but before the report actually gets displayed on the screen.
Here is the last breakpoint I can find before the error occurs.
Private Sub _RptLoad(ByVal sender As Object, ByVal e As System.EventArgs)
If (ReportDoc.HasSavedData) Then
Me.Close()
Me.DialogResult = DialogResult.Cancel
End If
AddHandler BTNApply.Click, AddressOf _ApplyNewMargins
AddHandler BTNSave.Click, AddressOf _SaveNewMarginOffsets
AddHandler UNELeft.ValueChanged, AddressOf _AnyOffsetChanged
AddHandler UNETop.ValueChanged, AddressOf _AnyOffsetChanged
AddHandler UNEBottom.ValueChanged, AddressOf _AnyOffsetChanged
AddHandler UNERight.ValueChanged, AddressOf _AnyOffsetChanged
Me.BTNApply.Enabled = False
Me.BTNSave.Enabled = False
RaiseEvent ReportLoaded(Me, Nothing)
End Sub
Everything here runs fine, but if I F11 from the END SUB I get the error and cannot figure out where its going from there or what's throwing the error.
Thank you for your time,
Dennis -
Specify Report File Path by Expression
TS201x Help under "Specifying Report File Paths by Expression" talks about using a number of various macros, but starts the page showing how to also use FileGlobals. When specifying the expression (... >>Specify Report File Path by Expression>>Expression Browser), I'd like to combine macros with FileGlobals, but none of the FileGlobals are listed i.e. available. The expression builder has access to the StationGlobals though, but not to the FileGlobals.
Is there a workaround, or at least an explanation, for this behaviour?
Cheers
Solved!
Go to Solution.
Attachments:
Specifying Report File Paths by Expression.pdf 247 KBThank for your quick reply!
So, I created the expression in the >>Specify Report File Path by Expression>>Expression Browser, using FileGlobals.MyReportName as per your suggestion.
Here, as expected, I got the first two error messages shown in the attached pdf.
I also made sure that my sequence has the FileGlobals.MyReportName defined.
When I run my sequence, I get the third error message shown in the attached pdf. I'd say this error message is also expected, since the non-listed FileGlobal
referred to in my expression created above, never reaches NI_ReportGenerator.seq i.e. modelsupport2.dll. Or perhaps I completely missed a point in your message?
In any case, please reply if you get a chance.
Cheers
Attachments:
Specifying Report File Paths by Expression - Error Messages.pdf 113 KB -
Getting Report File Path location at execution in TestStand 2012 and later
I need to include PNG pictures into my TestStand Report (HTML, XML, ATML).
When report generation was made through plugins (before TestStand 2012), it was easy to get report file location during execution through variable RunState.Root.Locals.ReportFilePath in order to save PNG files near the report file (in same directory).
I didn't find yet an easy an simple way to do the same in TestStand 2012 with Result Processing Plugins.
Any idea ?
Remarks :
Since this functionnality has to be included within MESULOG TS+ last version which is a TestStand Add-on, I cannot modify Report Options, Process Model or include a callback (like GetReportFilePath.
In need ReportFilePath within a Custom Step Type which cannot wait for PostUUT or ReportGeneration to save its PNG files.
Jean-Louis SCHRICKE
├ CTA - Certified TestStand Architect (2008 & 2010 & 2014)
├ CTD - Certified TestStand Developer (2004 & 2007)
└ CLD - Certified LabVIEW Developer (2003 & 2005)jiggawax,
Thank you for you quick answer.
RunState.Root.Locals.ModelPluginConfiguration.Plugins[<plugin index>].PluginSpecific.Options.Directory is valid only if
RunState.Root.Locals.ModelPluginConfiguration.Plugins[<plugin index>].PluginSpecific.Options.DirectoryType is set to "SpecificDirectory".
It seems that I cannot get the complete ReportFilePath before "UUT Done" plugin entry which is after MainSequence execution.
Jean-Louis SCHRICKE
├ CTA - Certified TestStand Architect (2008 & 2010 & 2014)
├ CTD - Certified TestStand Developer (2004 & 2007)
└ CLD - Certified LabVIEW Developer (2003 & 2005) -
Hi,
I inherited TestStand 3.0 code, which has been restored in new PC (old PC is completed gone, no settings, etc). The problem I'm having is that when the step completes, it prompts to select .XPS file (which I believe is the report file). I disabled report generation and only ran this single step, but still prompts me to select .XPS file (even specified to a specific path, still prompts me). Any idea how to disable this? I unchecked this step's report option from its step property but doesn't seem to help.
Thanks for any help.When the dialog is up, try doing a "Break All" in the sequence editor. They likely modified the process model sequences to display that dialog. You could also just open the process model sequence file and try to figure out where the code they modified is located.
-Doug -
Print report file path in footer
The VI in the picture worked fine when I selected standard report (except that I couldn't save to file). I changed to HTML and it moved my footer page number to the top of the page and put the path to the printing temp file on the bottom of the page. Why? All I did was change to HTML and add the save at the end.
Jim
LV 2013
Attachments:
Noname.png 8 KBHey Mike,
It may not technically be a footer, but it appears at the bottom of the page, and the page number that should be the footer is at the top. I originally used the exaprom pdf VIs to create the datasheet. Late last year I had some problems that appeared to be related to those VIs (or the DLL). I don't recall what the issue was, but I got it working. Now the program is crashing on start up and I don't know why. I am getting an access violation exception error. I sent the dump files to NI, but in the mean time decided to try native NI VIs to accomplish the task. Creating the report was working fine until I switched to HTML format so that I could save it.
Jim
LV 2013
Attachments:
PrintMetroSalesOrderHTML.vi 37 KB -
How can I redirect Batch Report Files to a different directory.
I have a custom version of the Batch Process Model that allows for on the fly report updates. At the end of execution the final report is written. I need to redirect this final report to another directory, but I am having trouble identifying where the report directory is specified. Right now, it is writing in the same directory as the sequence file and I need to change this.
Hi Terry,
have a look at the following inside the process model TestUUTs (or Single Pass)
Locals.ModelData.ReportOptions.DirectoryType
set this to "SpecificDirectory"
then in
Locals.ModelData.ReportOptions.Directory
set this to your target directory.
If it's a permanent setting, then I'd suggest updating these values before run time in the report options panel from the Configure menu option.
If it can be determined before the sequence is run, then you could do it as part of the report options callback. Otherwise, slot it in as and when needed, just before the call to the Determine Report File Path and Determine UUT Report File Path steps, although I guess that depends on how much you've modified the process model so far.
Hope that helps
S.
// it takes almost no time to rate an answer -
Reporting mechanism on HTML report file, using TestStand 2012 SP1
Hi,
I am using TestStand 2012 SP1, where the reporting mechanism is configured to be in HTML format.
I am not getting the full report of the sequence file which is executed, however I get a part of it printed on the HTML file.
The following are the configured "Report options",
===========
Contents Tab:
===========
Report Format : HTML Document
Default Numeric Format : %$.13f
Include Step Result: Checked
Result Filtering Expression : Result.Status=="Failed"
Include Test Limits : Checked
Include Measurements : Checked
Include Arrays : Insert Table
Filter : Include All
Include Execution Times : Checked
On-The-Fly Rporting and Only Display Latest Results : Checked
Select a Report Generator for producing the Report Body : DLL
===========
Report File Pathname Tab:
===========
Generate Report File Path : Checked
File Name/Directory Options : Specify Report File Path by Expression
Report File Path (Sequential Model) :
StationGlobals.TopLevelReportPath
+RunState.ProcessModelClient.AsPropertyObjectFile.DisplayName+"Report_[<FileDate>]<Unique>.<FileExtension>"
Please let me know a solution to this problem.
Thanks,
DharaniJason,
Thankyou for replying.
Yes, I need only the steps which had failed to print on the report file.
The problem what I am facing is, if there are 10 failed steps, the report is not printed for all.
Also the order of printing is not correct for the first step and the last step which is printed on the report file.
I had used "Post Expression" for printing data for all the failed steps. Normally these post expressions should be printed beneath the step in the report file.
However,
1) For the first step which is printed on the html file, the post expression gets printed just above the step and also it gets printed beneath the step.
2) For the last step which is printed on the html file, the post expression is not printed beneath the step.
Please let me know if i need to provide some more information.
Thanks,
Dharani -
How to get Sequence file path In "Sequentia​lModel.Seq​"?
Hello
I need to get the sequence file path in "SequentialModel.seq" before the "GetReportoptions" Callback is called.
I found that step "Determine Report File Path" in "Sequenctialmodel.seq" returns the sequence file path but i.e after executing quite a series of steps.
i need to get this sequence file path in the starting of "SequentialModel.seq".
looking forward to hear from you
Thanks n Regards
KulwantHello Kulwant,
try "RunState.InitialSelection.SelectedFile.Path" or "RunState.ProcessModelClient.Path" at the beginning of SequentialModel.seq please.
Regards
MY -
Create logical file path and read it in main program
Hello Experts,
My requirement is, I have to read files from application server.
File path/ Directory is different in different system (systid). i have to read all files starting with (xyz*) from mentioned directory.
This path i must define in logical path.
Following are the steps i followed.
1) In FILE (TCODE) i have created a logical path and assigned a physical path to it.
2) I have created logical file ( I am not sure about this, as i dont have to create logical file, i just need to read file from above path starting with xyz*, but FM FILE_GET_NAME requires logical file name so i have created it).
3) I will pass logical file name to FM FILE_GET_NAME and recieve physical file path(with file name which i can ignore).
these all steps i found on SDN. but its not working.
FM FILE_GET_NAME is always returning same file path ( Not even close to what i have defined ).
I can not read data from Table path as it will return physical path as it is, but i need it replaced with system id.
Any suggestion will be really helpful.
Thanks in Advance.
Regards,
AmarHi Amar,
one difficulty defining physical path name is to know the right Syntax group.
For example if you habe OS Linux, you need Syntax Group UNIX here. In Table OPSYSTEM you can see, which OS (OPSYS) needs which FILESYS (Syntax Group).
If you always get a wrong physical path, this may be caused ba a wrong choice of the Syntax Group. Only the correct one will lead to the correct path.
Regards,
Klaus
Maybe you are looking for
-
I have just agreed to software updates on my imac and now can't open my mail. There is a message saying this version of mail isn't compatible with this latest software. I have located the updated mail in the applications folder but it won't open. I
-
How do I upload a pages newsletter to my website
I am new with Pages and just created a news letter for my website. It includes a video. When I try to upload it to my website, I get an HTTP error. I have tried saving it as a word document, which not only eliminates the video, but the photos on the
-
Is there some setting to obtain the highest resolution photos?
I want to burn to a DVD to show on a large screen and want to get the highest resolution possible in the photos. Are there any settings I need to know about?
-
my images are cached only after the second time they're drawn. that first, not accelrated render causes a little pause in my app. is there a way by which i can make the image cached already before it's first appearance? i know i can do if i use a VM
-
I am trying to create a 16:9 format DVD and am getting very poor picture results. I am using a 3 CCD camera, Sony TRV 950. I set the camera menu to 16:9. When I import the video into iMovie 6 the picture looks distorted at first because it appears in