Report file name error with Chinese Date format
Hello,
I am seeing an error at
step Write UUT report in the standard model files. This step is
calling the API method save on the object Runstate.Report.
The issue occurs on computers using chinese localization with the date in the report file name.
Is this a known issue? Is there a way to modify the filename before calling the above method to eliminate the problem?
Solved!
Go to Solution.
An Error Message is attached.
WE have seen this on both Vista and XP. We are using TestStand version 4.1.1. I am not sure about the localization, but I have seen this on computers from Taiwan, Korea and Japan.
If I put a breakpoint in the Model file at the Write UUT Report Step, you can see Chinese Characters in the time portion of the file name.
If you change the report name to not include the time and date, the error does not occur.
We have seen this with ASCII and xml. With XML, the error also occurs at the step "Add Root Tags to XML Report"
Attachments:
FileNameError.JPG 134 KB
Similar Messages
-
Error with the data format in the TXT file, sending as an Email attachment
Hi all,
I have an problem in the data formating in the TXT file while sending as an attachment via an email by using the FM "SO_DOCUMENT_SEND_API1".
For eg:
The data in the TXT file is looking like as follows:
0 0 0 0 2 L O U D S P E A K R O T H E R 3 8 W h i t e 0 0
0031 L O U D S P E A K R O T H E R 3 8 Black 0 000
38 L O U D S P E A K R O T H E R 3 8 Brown 0 00040
L O U D S P E A K R O T H E R 3 8 Brown 0 00042
and so on
But it should come as :
0 0 0 0 2 L O U D S P E A K R O T H E R 3 8 W h i t e
0 0 0031 L O U D S P E A K R O T H E R 3 8 Black
0 00038 L O U D S P E A K R O T H E R 3 8 Brown
0 00040 L O U D S P E A K R O T H E R 3 8 Brown
All the internal tables are correctly filled.
The code is as follows:
gwa_objtxt = 'Please find attached DATA EXTRACT Sheet'.
append gwa_objtxt to git_objtxt.
describe table git_objtxt lines gv_cnt.
clear git_doc_data.
read table git_objtxt index gv_cnt.
git_doc_data-doc_size = ( gv_cnt - 1 ) * 255 + strlen( gwa_objtxt ).
git_doc_data-obj_langu = sy-langu.
git_doc_data-obj_descr = lv_mtitle.
append git_doc_data.
clear git_packing_list.
refresh git_packing_list.
git_packing_list-transf_bin = space.
git_packing_list-head_start = 1.
git_packing_list-head_num = 0.
git_packing_list-body_start = 1.
git_packing_list-body_num = gv_cnt.
git_packing_list-doc_type = 'RAW'.
append git_packing_list.
Clear : gv_cnt.
Describe table git_objbin lines gv_cnt.
git_packing_list-transf_bin = 'X'.
git_packing_list-head_start = 1.
git_packing_list-head_num = 1.
git_packing_list-body_start = 1.
git_packing_list-body_num = gv_cnt.
git_packing_list-doc_type = 'TXT'.
git_packing_list-obj_descr = 'ATTACH.TXT'.
git_packing_list-obj_name = 'book'.
git_packing_list-doc_size = gv_cnt * 255.
APPEND git_packing_list.
clear git_receivers.
refresh git_receivers.
git_receivers-receiver = gv_eid.
git_receivers-rec_type = 'U'.
append git_receivers.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
DOCUMENT_DATA = git_doc_data
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
TABLES
PACKING_LIST = git_packing_list
CONTENTS_BIN = git_objbin
CONTENTS_TXT = git_objtxt
RECEIVERS = git_receivers
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
DOCUMENT_TYPE_NOT_EXIST = 3
OPERATION_NO_AUTHORIZATION = 4
PARAMETER_ERROR = 5
X_ERROR = 6
ENQUEUE_ERROR = 7
OTHERS = 8.please give the code of
contents bin = git_objbin " how this is getting populated.
0 0 0 0 2 L O U D S P E A K R O T H E R 3 8 W h i t e <b>0 0</b>
0031 L O U D S P E A K R O T H E R 3 8 Black
0 000
38
from this im not able to understand is this over population or concatenation problem
y dont u make a append to the final table
like
data : begin of itxt occurs 0, ,
s1(132) type c ,
end of itxt.
loop at itab.
itxt-s1+0(4) = itab-f1.
itxt-s1+4(6) = itab-f2.
itxt-s1+10(8) = itab-f3.
itxts1+18(4) = itab-f4.
append itxt.
clear itxt.
endloop.
exchange this to the contents bin of hte Fm .
regards,
vijay.
can u please mail the text file and the expected o/p to my mail id [email protected] so that i can see the same from the data provided i m not able to check the result properly . -
Error facing in Date format in Chinese languaga in Webi Document
Hi,
In Infoview, when i am launching the webi document from a China location(China user) after giving the date as input in the promt window i am facing a Date error "aaaa-n-j h:mm:ss" in Chinese language.
so i think my date format is not in sync with Chinese date format.so if it the case what configuration changes to be done in infoview to resolve such issues?
Note: however this webi docuement is used by multiple users from multiple countries.
So what settings needs to be done in Infoview inorder to mitigate these date format issues. (i.e when opening a webi document in a different country in their local language)
Please help me in resolving this issue.
Thanks & Regards,
Kishore.Just for a workaround, If date format DD/MM/YYYY is not giving error, enter date in this date format despite profile format, or change user profile to that.
And check for user-exit with hard-code format validation. -
Applescript to take a file name element to change Date Created
This so beyond me but I have been led to believe is can be done. Can anyone help me please?
I have thousands of archive files. ALL of these files' names start with the date in dd-mm-yy format. eg. 31-01-11 File Name.pdf or 25-12-09 Filename-02.pdf
I would like to be able to drag a folder onto an application and for that app to search through the folder and all sub-folders, for these files and change the files' Date Created to the date at the start of the filename.
This feels so easy to type but I fear much more complicated to do however I do thank you very much in anticipation for your help.
Best wishes
JohnHello
Here's something you might try if the problem is still open.
It uses SetFile(1) command in Developer Tools, which you need to have intalled.
cf.
http://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/m an1/SetFile.1.html
It can set creation date to any date between 1970-01-01 to 2038-01-18 inclusive.
Simple check for date in file name is implemented so that error log is written to a log file on desktop when given date is considered invalid or SetFile raises error.
One thing to note.
It will process both files and directories under given directory tree in order to process package file. But it is not smart enough to leave the package contents alone, which means if a package contains a file or directory with name matching the pattern, it's creation date will be also changed.
Minimally tested under OSX 10.2.8 at hand.
But NO WARRANTIES of any kind. Please use it on test folder first.
Good luck,
H
--SCRIPT
on open aa
main(aa)
end open
on run
open ((choose folder) as list)
end run
on main(aa)
list aa : alias list of source directories
set logf to (path to desktop)'s POSIX path & "creationdate_error_log" & (current date)'s time & ".txt"
repeat with a in aa
set a to a as alias
if (a as Unicode text) ends with ":" then -- directory
set p to a's POSIX path's text 1 thru -2 -- posix path without trailing /
set sh to "path=" & p's quoted form & ";
logf=" & logf's quoted form & ";
find "$path" -name '[0-9][0-9]-[0-9][0-9]-[0-9][0-9]*' -print0 | while read -d $'\0' f;
do
fn=${f##*/};
dd=${fn:0:2}; ((d=10#$dd));
mm=${fn:3:2}; ((m=10#$mm));
yy=${fn:6:2}; ((y=10#$yy));
if [[ ($d -ge 1 && $d -le 31) && ($m -ge 1 && $m -le 12) && ($y -ge 70 || $y -le 38) ]]; then
if [[ $y -ge 70 ]]; then
cc=19;
else
cc=20;
fi
res=$(/Developer/Tools/SetFile -d "$mm/$dd/$cc$yy 00:00" "$f" 2>&1);
if [[ -n $res ]]; then
echo "# $res ; failed for : $f" >> $logf;
fi
else
echo "# invalid date in name : $f" >> $logf;
fi
done"
do shell script sh
end if
end repeat
end main
--END OF SCRIPT -
How to print the report file name and path and the last mod date
Good morning,
I am trying to print on the footer of the report the report file name and path as well as the report last modification date.
Anyone would know how I can do that? I have checked the doc but found nothing.
Thks. Philippe.Did you ever determine how to print report name and report last mod date?
Thanks -
URGENT: XML-SQL: Error parsing different date formats in the same XML file.
Hi Everyone,
I have a big problem while using the XML-SQL utility. I have a XML file with different date formats. I get exception like the one below.
"oracle.xml.sql.OracleXMLSQLException: 'java.text.ParseException: Unparseable date:"
And the XML file is :
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Info Key="ID">
<Insert>
<ID>1</ID>
<BookingDate>10.12.2001</BookingDate>
<OpeningTime>19:16</OpeningTime>
</Insert>
</Info>
I have tried using different setDateFormat which is contrary.
sav.setDateFormat("d.M.y");
sav.setDateFormat("H:m:s");
Can someone help me on the same.
Thanks in advance.
Subramanian.You might have to describe the columns as varchar then modify the table to the right format.
-
Hy,
I've got a problem when we insert a timestamp to a db.
When I try to start an insert code I get this error:
SQL-Error: ORA-01830: "data format picture ends before converting entire input string"
Insert into ABC_123("dtstamp") values (to_timestamp('31.05.13 09:30:05,000748000 +01:00','DD.MM.RR HH24:MI:SSXFF'));
with this language settings
National Language Support
National
Language Parameter
Value
NLS_CALENDAR
GREGORIAN
NLS_CHARACTERSET
WE8MSWIN1252
NLS_COMP
BINARY
NLS_CURRENCY
€
NLS_DATE_FORMAT
DD.MM.RR
NLS_DATE_LANGUAGE
GERMAN
NLS_DUAL_CURRENCY
€
NLS_ISO_CURRENCY
GERMANY
NLS_LANGUAGE
GERMAN
NLS_LENGTH_SEMANTICS
BYTE
NLS_NCHAR_CHARACTERSET
AL16UTF16
NLS_NCHAR_CONV_EXCP
FALSE
NLS_NUMERIC_CHARACTERS
NLS_SORT
GERMAN
NLS_TERRITORY
GERMANY
NLS_TIME_FORMAT
HH24:MI:SSXFF
NLS_TIMESTAMP_FORMAT
DD.MM.RR HH24:MI:SSXFF
NLS_TIMESTAMP_TZ_FORMAT
DD.MM.RR HH24:MI:SSXFF TZR
NLS_TIME_TZ_FORMAT
HH24:MI:SSXFF TZR
I didn't see the error. Maybe somebody can help me.
Thx
Felixef5fe917-5142-4425-a464-94ab111ed87a wrote:
Hy,
I've got a problem when we insert a timestamp to a db.
When I try to start an insert code I get this error:
SQL-Error: ORA-01830: "data format picture ends before converting entire input string"
Insert into ABC_123("dtstamp") values (to_timestamp('31.05.13 09:30:05,000748000 +01:00','DD.MM.RR HH24:MI:SSXFF'));
with this language settings
National Language Support
National
Language Parameter
Value
NLS_CALENDAR
GREGORIAN
NLS_CHARACTERSET
WE8MSWIN1252
NLS_COMP
BINARY
NLS_CURRENCY
€
NLS_DATE_FORMAT
DD.MM.RR
NLS_DATE_LANGUAGE
GERMAN
NLS_DUAL_CURRENCY
€
NLS_ISO_CURRENCY
GERMANY
NLS_LANGUAGE
GERMAN
NLS_LENGTH_SEMANTICS
BYTE
NLS_NCHAR_CHARACTERSET
AL16UTF16
NLS_NCHAR_CONV_EXCP
FALSE
NLS_NUMERIC_CHARACTERS
NLS_SORT
GERMAN
NLS_TERRITORY
GERMANY
NLS_TIME_FORMAT
HH24:MI:SSXFF
NLS_TIMESTAMP_FORMAT
DD.MM.RR HH24:MI:SSXFF
NLS_TIMESTAMP_TZ_FORMAT
DD.MM.RR HH24:MI:SSXFF TZR
NLS_TIME_TZ_FORMAT
HH24:MI:SSXFF TZR
I didn't see the error. Maybe somebody can help me.
Thx
Felix
Insert into ABC_123("dtstamp") values (to_timestamp('31.05.13 09:30:05,000748000 +01:00','DD.MM.RR HH24:MI:SSXFF'));
| | | | | | |
| | | | | | +--????
| | | | | +----SS
| | | | |
| | | | +-----MI
| | | |
| | | +-----HH24
| | |
| | +----RR
| |
| +----MM
|
+----DD
The error message means exactly what it says. Your data format string doesn't account for everything in your data string. -
Receiving error when calculating two fields with different date format
I am more familiar with SQL Server than Oracle, so after searching online without success, I am asking here.
I'm using PL/SQL Developer with Oracle DB 11g Enterprise Release 11.2.0.2.0 64 Bit
MyTable:
ID_Number VarChar2
Date_Received Date
Select ID_Number,
Date_Received,
To_Date(substr(ID_Number, 1,6), 'YYMMDD') SentDate,
Date_Received - To_Date(substr(ID_Number, 1,6), 'YYMMDD') NumDays
From MyTable
Where substr(ID_Number, 7,3) in ('ABC', 'ABD')
and Length(Trim(Translate((substr(ID_Number, 1,6)), '0123456789', ' ' ))) is null
ID_Number Date_Received SentDate NumDays
131002ABC1654106 10/16/2013 10/2/2013 14
131004ABD8813899 4/12/2013 4/8/2013 4
131014ABD1844832 10/16/2013 10/14/2013 2
Sometimes the first 6 characters in the ID_Number are not numbers, and the Length(Trim(Translate removes those records
I just want records where NumDays > 2
I've tried putting the query in a subquery and using Where NumDays > 2 outside. I've also tried using the computation directly in the Where clause. Without this in the Where clause it runs fine, with it in either spot I get the following error:
ORA-01931: Date format picture ends before converting entire input string
I'm not sure how to put both dates in the same format. I've tried declaring the format to no avail. I do not understand how I can calculate within the select but not use the same calculation within the Where clause.
Thank you for your help.Hi,
SQL is a language for describing the results you want. How the system gets those results is up to it; you don't have much say regarding which conditions will be applied when.
One place where you can control the order of things is in a CASE expression. When you say
CASE
WHEN condition_1
THEN expression_1
END
you can be sure that expression_1 will only be evaluated when cond_1 is TRUE.
Try something like this:
WITH got_sent_date AS
SELECT id_number, date_received
, CASE
WHEN TRANSLATE ( SUBSTR (id_number, 1, 6)
, 'x 0123456789'
, 'x'
) IS NULL
THEN TO_DATE ( SUBSTR (id_number, 1 6)
, 'YYMMDD'
END AS sent_date
FROM MyTable
WHERE SUBSTR (id_number, 7, 3) IN ('ABC', 'ABD')
SELECT id_number
, date_received
, sent_date
, date_received - sent_date AS num_days
FROM got_sent_date
WHERE date_received > sent_date + 2
If you'd care to post some sample data (CREATE TABLE and INSERT statements) and the results you want from that data, then I could test this.
Of course, you'll still have run-time errors if id_number starts with 6 digits, but they don't happen to be valid, e.g. '131100' or '130229'. That's one of the many reasons why storing date information in VARCHAR2 columns is such a bad idea. To get around that problem, see
https://forums.oracle.com/message/4255051 -
Overwrite crystal report file name with new version but keep history
I am writing a Crystal Reports .NET SDK in C# code to upload a crystal report files from its destination to CMC folder on BO XI R2 Platform.
On "Upload Button" click_event, validate the two check boxes controls named "Keep History", and "Remove History". Once "Keep History" check box is selected, check If the SAME report file name exists in the same destination CMC folder, if Yes, overwrite it BUT Keep the History and all its associated objects like "recurring objects". If "Remove History" is selected, then remove the existing report and upload the new report file name.
Please provide me some codes on how to do this task. This is definitely a "WIN" - "WIN" effort and contribution to my Team Goals.
P.S. This is a similar scenario when you are uploading report on BO Enterprise R2 CMC.
When Uploading a new report to a folder but same report file name exists, the BO System will promt message "Report File Name" already exists. Do you want to Overwrite it?" If Yes, then system will overwrite the file but it will keep the history and recurring objects.
Any help would be greatly appreciated.
Thanks,
BienSuggest looking at [this|https://wiki.sdn.sap.com/wiki/display/BOBJ/NETBusinessObjectsEnterpriseSDKSamples] wiki for links to pertinent samples. Also, check out the [Developer Help File|http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/WS_SDK/wssdk_server/default.htm]. Searching these forums for similar queries may also prove to be fruitful
Ludek -
SQL Loader Error : ORA-01830: date format picture ends before converting en
I am inserting following data
BES101706 M.E. Deals 7 10/17/2006
through control file :
LOAD DATA
APPEND
INTO TABLE abc_temp
FIELDS TERMINATED BY ' '
TRAILING NULLCOLS
(BATCH_NAME ,
SUPPLIER_NAME ,
SUPPLIER_NBR ,
INV_DATE "to_date(substr(:INV_DATE,1,10),'MM/DD/YYYY' )"
But I am getting this error:
ORA-01830: date format picture ends before converting entire input string
inv_data is a date field in the database.I think it has to do with data format.Exactly.
You have
BES101706*M.E.*Deals*7*10/17/2006
I replace each space with an asterisk. You have 5 columns according to your spec (terminated by '<space>')
SQL Loader doesn't know that M.E. Deals is the supplier name.
It's trying to convert 7 as the date. -
Hello,
I use TesStand 3.1 in Batchmode with 4 Testsockets and generate a XML Testreport for every UUT with the serial number in the file name.
I leave the "Enter UUT Serial Number" dialog boxes at the begin empty.
After that i read out the Serial Number of my UUTs at the runtime via CAN and use the "PostUUT-Callback" to modify the "Parameters.UUT.SerialNumber".
Because of that the UUT Serial Number appears in the Report Header.
But the report filename is always "Report[NO_UUT_SERIAL_NUM0][date][time].xml".
Is it possible to modify the "UUT Serial Number" in the Report File Name, too?
Thanx for your answers!
Greetz ALIENWe modify the report name to include error count, Model, build, etc. but it requires that the Report be complete at that point (file no longer locked by TestStand).
In order to do this, you'll need to create a Sequence (with no Process Model) to call the test sequence using Subsequence call with the "Run Sequence in a New Execution" selected in the "Specify Module", Multithreading selection ring.
There may be other ways to do what you're attempting, but this gives you freedom to rename the file.
Mike -
Not able to save date column with custom date format. in OBIEE 11g
Hi,
I have migrated one report from OBIEE 10g to 11g. There is a date column with customized date format(i.e. Default format is 'dd-MMM-yyyy' and I have used 'MMM-yyyy').
But when I use this custom format and try to save the report in 11g its giving this below error.
''Catalog object privilege validation failed for user to path /shared/ALM BI/Finacial Results/History Income Statement Detail.
You do not currently have sufficient privileges to save a report or dashboard page that contains HTML markup.
This HTML might be present in column headings, table headings, text views, narrative views, the print header,
or the print footer and must be removed before saving.''
Please let me know what changes I need to do for this.
Regards,
Ambika Nanda.Hi ,
privilage issues...check the security settings once..
Thanks,
Ananth -
Invalid File Name Errors when syncing to Ipod
Ever since an update last fall I have been getting Invalid file name errors when I try to sync my ipod. A window would pop up saying "Windows could not copy 'SONGNAME' to the iPod 'IPODNAME' because an unkown error occurred (-37)." I would press OK and another window would immediately pop up that would say, "Attempting to copy to the disk 'IPODNAME' failed. the file name is invalid or too long."
The windows would keep popping up countless times until the sync would just seem to time out and stop.
The problem songs would have no problem playing in iTunes.
Prior to the update this did not happen. No new songs were added around this time and nothing was changed to my file directory structure. I was too busy to troubleshoot this problem at the time and hoped that another update would fix it. Well, here I am many months and updates later and still no fix. After fiddling with iTunes and resetting my Ipod multiple times (goodbye saved angry bird games)I have found out that:
1. By writing down the file name when the error windows pop up I can get a partial list of the problem file names. I could not get a complete list of the problem files because the sync would time out before a full list could be compiled (the list appears to be in the hundreds).
2. If I changed the name of the file by adding OR deleting one character, remapping the song in itunes, the song would then sync properly.
3. If I changed the name of the file, remapped the location of the file within iTunes, changed the name of the file BACK to the original name that iTunes supposedly had a problem with, and then remapped the location of the song within iTunes, the song would then sync properly
4. If I moved the song to a different directory without changing the file name, remapped the song within iTunes, the song would sync properly.
5. If I moved the song to a different directory without changing the file name, remapped the song within iTunes, moved the file BACK to the original directory, remapped the song again, the song would sync properly.
6. If I renamed the file and then named it back to the original file name WITHOUT remapping the file location in iTunes, the song would still not sync properly
7. If I moved the file into a different directory and then back again without remapping the file location, the song would still not sync properly.
8. Changing or deleting the tags has no effect at all.
9. File name lengths are already under 200 characters and there are no special characters used.
So, to sum up, I have found out a way to fix the issue. The problem is, that there are hundreds of songs that appear to be affected and renaming or moving every single one individually and then remapping is extremely inefficient and ignores the cause of the problem. I also did not want to delete the itunes library and then add all of the songs back in because I have many custom playlists that I have spent hours creating and I do not want to delete them.
Is there a better way to fix the problem? Especially if someone knows the root cause?I got a procmon log file and examined it. I have the file and I could also provide you with that or screenshots of it.
There is nothing unusual about it. I can see entires in which CR has successfully opened the report and has cached in a c:\windows\temp.
However there is one or two non-successful entries that may be related, especially that examining the stack trace brings us to a call to get_ProductLocaleID():
- A call to read reg entry HKU\S-1-5-20\Software\Business Objects\Suite 12.0\Crystal Reports\Locale fails with NAME NOT FOUND.
- immediately after that and from the same process (w3wp.ex) there is a call to open directory "c:\" which is logged as ACCESS DENIED.
Any subsequent unsuccessful calls seem to be results of exception handling in the debug code.
Does this point to any setup issues with CR? We always run the redistributable x86 runtime when installing it. -
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) -
Help with add file name problem with Photoshop CS4
Frustrating problem: Help with add file name problem with Photoshop CS4. What happens is this. When I am in PS CS4 or CS3 and run the following script it runs fine. When I am in Bridge and go to tools/photoshop/batch and run the same script it runs until it wants interaction with preference.rulerunits. How do I get it to quit doing this so I can run in batch mode? Any help is appreciated. HLower
Script follows:
// this script is another variation of the script addTimeStamp.js that is installed with PS7
//Check if a document is open
if ( documents.length > 0 )
var originalRulerUnits = preferences.rulerUnits;
preferences.rulerUnits = Units.INCHES;
try
var docRef = activeDocument;
// Create a text layer at the front
var myLayerRef = docRef.artLayers.add();
myLayerRef.kind = LayerKind.TEXT;
myLayerRef.name = "Filename";
var myTextRef = myLayerRef.textItem;
//Set your parameters below this line
//If you wish to show the file extension, change the n to y in the line below, if not use n.
var ShowExtension = "n";
// Insert any text to appear before the filename, such as your name and copyright info between the quotes.
//If you do not want extra text, delete between the quotes (but leave the quotes in).
var TextBefore = "Lower© ";
// Insert any text to appear after the filename between the quotes.
//If you do not want extra text, delete between the quotes (but leave the quotes in).
var TextAfter = " ";
// Set font size in Points
myTextRef.size = 10;
//Set font - use GetFontName.jsx to get exact name
myTextRef.font = "Arial";
//Set text colour in RGB values
var newColor = new SolidColor();
newColor.rgb.red = 0;
newColor.rgb.green = 0;
newColor.rgb.blue = 0;
myTextRef.color = newColor;
// Set the position of the text - percentages from left first, then from top.
myTextRef.position = new Array( 10, 99);
// Set the Blend Mode of the Text Layer. The name must be in CAPITALS - ie change NORMAL to DIFFERENCE.
myLayerRef.blendMode = BlendMode.NORMAL;
// select opacity in percentage
myLayerRef.opacity = 100;
// The following code strips the extension and writes tha text layer. fname = file name only
di=(docRef.name).indexOf(".");
fname = (docRef.name).substr(0, di);
//use extension if set
if ( ShowExtension == "y" )
fname = docRef.name
myTextRef.contents = TextBefore + " " + fname + " " + TextAfter;
catch( e )
// An error occurred. Restore ruler units, then propagate the error back
// to the user
preferences.rulerUnits = originalRulerUnits;
throw e;
// Everything went Ok. Restore ruler units
preferences.rulerUnits = originalRulerUnits;
else
alert( "You must have a document open to add the filename!" );you might want to try the scripting forum howard:
http://www.adobeforums.com/webx?13@@.ef7f2cb
Maybe you are looking for
-
Replacing marker text for sevral markers in one shot.
I can't change marker text (such as an index entry) by using the Find/Change dialog box. If FrameMaker finds the marker text I specify, and if I type different text in the Change text box and click Change, FrameMaker replaces the marker--not the mark
-
Ipad2 has lost the mirroring icon, how is it reset?
Hi, I have a friend who has an iPad2 I had set up her iPad to mirror via AirPlay to her TV through an Apple TV, however her nephew has been playing with the settings and the mirroring icon has disappeared, will I have to reset everything and start fr
-
Ae converting ai layer to bitmap on swf export
I posted this problem a couple of weeks ago and thought the problem was solved. It is back. I have an illustrator layer in ae, no mask, no effect, just an ai layer in an ae comp. I export as swf, when I bring it into flash, my lovely vectors have b
-
MiniSAP 46D Installation Error
Hi guys, I have already this error but i cant get a reply. Please help me to overcome this error. I bought ABAP objects book for miniSAP. I installed it sucessfully first time. But while i am repeating the same procedure for the second time
-
It says I cannot reconfigure my router to MAC OS X 10.9.4 but it can do so with a MAC OS X 10.5.8, MAC OS X 10.6.1, and/or a MAC OS X 10.7 or later operating system. How is it even possible that my MAC OS X 10.9.4 is later than MAC OS X 10.7 model bu