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 KB
Hey 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
Similar Messages
-
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 -
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 -
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 -
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 -
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 -
Preferences: Code Editor: Printing: Add File Path and Date to Print Header?
Is there a way to add file full path and date to the print file header for a SQL Worksheet when printing from the Code Editor? So, for example, if my SQL worksheet is called MySQL.sql and is saved to C:\Myfiles\SQL_Code\, I'd like to print the full path 'C:\Myfiles\SQL_Code\MySQL.sql' and today's date as part of the print header along with the page numbers at the top of the code. I see a Java preview in the Preferences: Code Editor: Printing window that mentions a "Today" date but I don't know Java and that is an uneditable preview. I have checked the "Print File Header" check box. Is the file header definition stored somewhere in a configuration file and/or is there a way to modify/customize the default file header?
I am a new user to SQL Nav. version 3.2.20.09 Build-MAIN 09.87. I could do this in SQL Navigator but can't figure it out in SQLDeveloper. Thank you.
-CathyHI
First of all,
Unless otherwise you selected some option like page break after/before - both body and header/footer will print on same page in report, so in pdf as well.
If you have difference on report and PDF that you should look into your setup.
If you want more help, please be particular on your issue
james. wrote:
Hi All,
I am using Oracle Report 10g. How can I add header and footer on same page as my body? Right now when a generate a pdf file, it is printing individual pages instead of 1 one page. Please help me.
Regards -
Does Pages give me a way to autofill my file path into the footer like Word does?
Hello
Here is a revised version.
Copy the script in the clipboard
Paste in a blank window of Script Editor
Save it as an Application or an Application Bundle
Move the newly created application into the folder:
<startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Pages:
Now, enter your Pages document.
Click where you want.
Go to
menu Scripts > pastethepath
The path to the document's package will be pasted at the insertion point.
If the document was never saved you will get an error message.
Yvan KOENIG
1 janvier 2008
revised 24 février 2008
--(SCRIPT pastethepath.app]
set theApp to "Pages"
tell application theApp to set u to path of document 1 (*
returns nothing if the document was never saved *)
try
set u to u (* send an error if the doc was never saved *)
on error
tell application theApp to set u to name of window 1
end try
set ky to "/Volumes/"
if u starts with ky then
set u to text 2 thru -1 of POSIX path of (text (1 + (count of ky)) thru -1 of u)
else if u starts with "/Users/" then
tell application "System Events" to set u to (path of disk item u)
set u to text 1 thru -2 of (u as Unicode text)
else
set z to do shell script "defaults read 'Apple Global Domain' AppleLocale"
if z starts with "fr_" then
error "Le document " & "«" & u & "» n’a pas été enregistré." number 701
else
error "The document " & "“" & u & "” was never saved." number 701
end if
end if
set the clipboard to u
tell application theApp to activate
tell application "System Events" to tell process theApp
keystroke "v" using {command down}
end tell
--[/SCRIPT]
Yvan KOENIG (from FRANCE dimanche 24 février 2008 17:20:54) -
How to include file path in footer
I need to add file paths to a pdf I have created. Does anyone know how? I know that there are JavaScript ways, but I am not even sure what a Java Script is.
Thanks for any insight!If you do not know how to use JavaScript, there is this option: Custom-made Adobe Scripts: Acrobat/Reader -- Advanced Add Header/Footer Text (but it's not free).
-
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 -
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) -
Can't set the "print to file" path in firefox 10
print.printer_PDF.print_to_filename
print.printer_Print_to_File.print_to_filename
In the previous version of Firefox those settings allowed me to print to a pdf file in a specified directory by default. In the ff10 they don't appear to have any effect? Are there new settings that replace these? Or, has this (awesome) functionality been removed for some reason?This is another suggestion if the bridge > preferences > file association option doesn't work. I just confirmed that the bridge method does work for me (Mac user who wants to mostly use CS5 but wants to use CS6 occasionally).
My method that I worked out yesterday was to create a zip of the application files and then delete the originals (if you have extensions visible, they are the .app files). The logic being that if there is no application then the application can't open. Easy enough to unzip the applications when they are needed—and I confirmed taking the .apps out of cryofreeze will work.
I know this won't work for most but it can work in a pinch - if you need to doubly ensure that you don't open and resave items in a version that doesn't work for your workflow.
But hopefully the bridge preferences file association thing will keep working. Don't know what people do who doesn't install bridge.
Maybe you are looking for
-
I got error message while installing Acrobat 9.0 "adobe updater install manager has stopped working" working on Windiws 7 64-Bit.
-
User and Role in sender SOAP call
Hi mates, Must we use a service user id while making SOAP requests from SOAP clinet like oXygen or XMLSpy? Can we not use any dialog users? If yes, what should be optimal role for this user? I saw the note 856597, it says <i>You must use one of the u
-
Perl performance on solaris 10
hi all, i executed this (http://www.metacard.com/perlbench.html) script on solaris 10 and linux machine. Solaris box took around 15sec to complete the test where as linux box took only 8 seconds. Is there any way to increase the perfomance of perl on
-
Question - applet using JMF for playing .mov
I develop an applet using JMF for playing .mov. It works fine, and the applet starts normally. Even my applet works fine from other computers in our LAN (The applet runs ok without JMF). But only on one PC it doesn't work and I get the following mess
-
Close popup window from loaded movie
I have an html link which launches a flash movie into a separate html window. The flash movie then loads another movie into level 10. from this level, I am trying to close the flash movie and its associated html page using the code:- javascript:windo