[JS:CS4] - How to Load the PrinterPreset in InDesign
Dear All,
I'm having the Printer Presets ".prst" in some where in the local machine, How to Load this preset in to Application though javascript.
I can create the preset through : preset.add() method. but I can't load from the user given or mentioned path itself.
Please any one give me the solutions, then I will appreciate....
Thanks & Regards
T.R.Harihara Sudhan
Please find the following code, which will remove all the print presets before adding our preset to the application.
//Removing all printerPresets from the application
for(var pP=0; pP < app.printerPresets.length; pP++)
var myprintPreset = app.printerPresets.item(pP);
if (String(app.printerPresets.item(pP).name) != '[Default]')
myprintPreset.remove();
//Adding our preset to the application
var printPreset;
printPreset=File("c:/test.prst");
app.importFile(1918071916, printPreset);
myprintPreset=app.printerPresets.lastItem();
myprintPreset.printFile = File(aDoc.filePath+'/'+String(aDoc.name).substr(0, (String(aDoc.name).length-5))+'.ps');
aDoc.print(false, myprintPreset);
Arivu
Similar Messages
-
How to load the content in Combobox
Dear All,
Any one can tell me how to load the combobox dynamically.. i have one combobox in that i defined the value as "Defined New" when i click the DefineNew a new form wil come i wil enter the value in the editext. when i click the combobox the value should display.. i have done this, its working fine but the problem is every time when i add the value it wil show the data in the the form Load.. i want data should come dynamically..
any one can help me in this regard
G.shankarYou can use this "oForm.Refresh()" every time you add a new valid value to the ComboBox.
I hope this help you.
Regards.
Enriquillo Guigni -
How to Load the data from excel file(Extension is .CSV) into the temp.table
Hi
How to Load the data from excel file(Extension is .CSV) into the temporary table of oracle in Forms11g.
My Forms Version is - Forms [64 Bit] Version 11.1.2.0.0 (Production)
Kindly Suggest the Solution.
Regards,
SachinHello Sachin,
You can use the following metalink note:How to Read Data from an EXCEL Spreadsheet into a Form Using Webutil Client_OLE2 (Doc ID 813535.1) and modify it a little bit.
Instead of copy values into forms you can save them in your temporary table.
Kind regards,
Alex
If someone's helpful or correct please mark it accordingly. -
How to load the data from .csv file to oracle table???
Hi,
I am using oracle 10g , plsql developer. Can anyone help me in how to load the data from .csv file to oracle table. The table is already created with the required columns. The .csv file is having about 10lakh records. Is it possible to load 10lakh records. can any one please tell me how to proceed.
Thanks in advance981145 wrote:
Can you tell more about sql * loader??? how to know that utility is available for me or not??? I am using oracle 10g database and plsql developer???SQL*Loader is part of the Oracle client. If you have a developer installation you should normally have it on your client.
the command is
sqlldrType it and see if you have it installed.
Have a look also at the FAQ link posted by Marwin.
There are plenty of examples also on the web.
Regards.
Al -
How to load the data from excel file into temprory table in Forms 11g?
Hi
How to Load the data from excel file(Extension is .CSV) into the temporary table of oracle in Forms11g.
My Forms Version is - Forms [64 Bit] Version 11.1.2.0.0 (Production)
Kindly Suggest the Solution.
Regards,
SachinDeclare
v_full_filename varchar2(500);
v_server_path varchar2(2000);
v_separator VARCHAR2(1);
v_filename VARCHAR2(400);
filename VARCHAR2 (100);
v_stop_load varchar2 (2000);
v_rec_error_log varchar2(4000);
v_error_log varchar2(4000);
ctr NUMBER (12);
cols NUMBER (2);
btn number;
RES BOOLEAN;
application ole2.obj_type;
workbooks ole2.obj_type;
workbook ole2.obj_type;
worksheets ole2.obj_type;
worksheet ole2.obj_type;
cell ole2.obj_type;
cellType ole2.OBJ_TYPE;
args ole2.obj_type;
PROCEDURE olearg
IS
args ole2.obj_type;
BEGIN
args := ole2.create_arglist;
ole2.add_arg (args, ctr);
ole2.add_arg (args, cols);
cell := ole2.get_obj_property (worksheet, 'Cells', args);
ole2.destroy_arglist (args);
END;
BEGIN
v_full_filename := client_get_file_name(directory_name => null
,file_name => null
,file_filter => 'Excel files (*.xls)|*.xls|'
||'Excel files (*.xlsx)|*.xlsx|'
,message => 'Choose Excel file'
,dialog_type => null
,select_file => null
If v_full_filename is not null Then
v_separator := WEBUTIL_CLIENTINFO.Get_file_Separator ;
v_filename := v_separator||v_full_filename ;
:LOAD_FILE_NAME := substr(v_filename,instr(v_filename,v_separator,-1) + 1);
RES := Webutil_File_Transfer.Client_To_AS(v_full_filename,"server_path"||substr(v_filename,instr(v_filename,v_separator,-1) + 1));
--Begin load data from EXCEL
BEGIN
filename := v_server_path||substr(v_filename,instr(v_filename,v_separator,-1) + 1); -- to pick the file
application := ole2.create_obj ('Excel.Application');
ole2.set_property (application, 'Visible', 'false');
workbooks := ole2.get_obj_property (application, 'Workbooks');
args := ole2.create_arglist;
ole2.add_arg (args, filename); -- file path and name
workbook := ole2.get_obj_property(workbooks,'Open',args);
ole2.destroy_arglist (args);
args := ole2.create_arglist;
ole2.add_arg (args, 'Sheet1');
worksheet := ole2.get_obj_property (workbook, 'Worksheets', args);
ole2.destroy_arglist (args);
ctr := 2; --row number
cols := 1; -- column number
go_block('xxx');
FIRST_RECORD;
LOOP
--Column 1 VALUE --------------------------------------------------------------------
olearg;
v_stop_load := ole2.get_char_property (cell, 'Text'); --cell value of the argument
:item1 := v_stop_load;
cols := cols + 1;
--Column 2 VALUE --------------------------------------------------------------------
olearg;
:item2 := ole2.get_char_property (cell, 'Text'); --cell value of the argument
cols := cols + 1;
--<and so on>
ole2.invoke (application, 'Quit');
ole2.RELEASE_OBJ (cell);
ole2.RELEASE_OBJ (worksheet);
ole2.RELEASE_OBJ (worksheets);
ole2.RELEASE_OBJ (workbook);
ole2.RELEASE_OBJ (workbooks);
ole2.RELEASE_OBJ (application);
END;
--End load data from EXCELPlease mark it as answered if you helped. -
How to load the data from excel file into table in oracle using UTL_FI
How to load the data from excel file into table in oracle
and from table to excel file
using UTL_FILE package
Please give me some exampleThis is something i tried in oracle apex
http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
Regards,
CKLP -
How to load the data from informatica into bw & how to report the data
Hi friends,
how to load the data from informatica into bw & how to report the data
using cognos.(i.e how to access the data in sap bw using cognos 8 BI suite).
Thanks,
madhu.Inorder to report BW data into Cognos you can extract data from using Open Hub to the DB table from which Cognos reads.
For BW informatic integration refer following docs:
http://www.aman.co.il/aman/pfd/DataInteg_BR.q103cd.pdf.pdf
http://h71028.www7.hp.com/enterprise/cache/3889-0-0-225-121.html
http://devnet.informatica.com/learning/ePresentations.asp
http://72.14.203.104/search?q=cache:C741L86Q19oJ:devnet.informatica.com/showcase/resources/Essbase_DataSheet.pdfinformaticapowerconnect(BI)&hl=en&gl=in&ct=clnk&cd=3
http://www.informatica.com/customers/utilities_energy/fpl_group.htm
http://www.informatica.com/solutions/resource_center/technote_sapbw_65241004.pdf#search=%22Informatica%20to%20Bw%22 -
How to load the CategoryName, instead of CategoryID in ListView?
I have a Listview control in a Windows Form.
The listview contains 3 columns
- CategoryID
- Product Description
- Price
The question is: how to load the "Category Name", instead of "Category ID"?
Does listview support Dictonary Blinding?
Please helpHi iHandler,
As CoolDadTx said, the key part of Dictionary wouldn't be available.
If the Value part of your Dictionary is List Type, it can be binded to listView, but I suggest you using TreeView instead of ListView. Because The Dictionary type is
One to One or One to Many relationship. I can be easily binded to
TreeView for displaying the relation.
Here I make a sample you could refer to which can load the TreeView with a Dictionary.
private void LoadTreeView(Dictionary<string, List<string>> treeStatusDic)
//load Key Node
foreach (string key in treeStatusDic.Keys)
this.treeView1.Nodes.Add(key);
//load child Node
foreach (TreeNode tn in this.treeView1.Nodes)
if (treeStatusDic.ContainsKey(tn.Text))
List<string> ls = treeStatusDic[tn.Text];
foreach (string t in ls)
tn.Nodes.Add(t);
If you have any other concern regarding this issue, please feel free to let me know.
Best regards,
Youjun Tang
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Hello,
In my BI system ,i have the DSO and InfoCube ,haveing the
infopackage Delta and Init..can any one tell me how to load the data from R/3 in to DSO ,when we have two infopackage(one is delta nad other is Init).Please define brifly.Hello,
The procedure is as follows.
1) First run the init infopackage (either with or without data), preferably with data.
2) Then run the delta infopackage always. (it will get delta records always).
Now if there are any errors and delta gets faulted, you can delete the init from the init infopackage and run the init infopackage again.
And then schedule the delta.
REgds,
Shashank -
How to load the external outlines .otl
i have hyperion essbase 9.3.1.i had received external outlines.how to load the external outlines
Hi
I have bee told that simply copying the otl file can cause it to become corrupt and that the best way is to:
1. Open the file in the Admin Console using File > Open and browsing to the otl file you have been sent
2. Do a Save As and save over the existing otl file
3. Stop and restart the application
I think this is particularly if the otl file is from a different version.
Hope this helps
Stuart -
How to load the subinventories
Hi,
How to load the subinventories if i have around 200 programtically?
Note : i dont want to use data loader for it?
Regards
846691This is from MySupport:
Currently there is no API or Interface table to upload the subinventory related information.
At present there is no other option other than to use the front end application .
There is an existing enhancement request which may be released in future release.
hope this helps -
How to load the google map into an empty movieclip
how to load the google map into an empty movieclip ? Thank you
if you're using as3, check the google maps api for flash. if you're using as2, check the google maps api for javascript and use the externalinterface class in flash.
-
How to load the boot menu using the command line , after the configuration change ?
how to load the boot menu using the command line , after the configuration change ?
Hi @Bask-48
Welcome to the HP Forums!
It is a terrific place to find answers.
For you to have the best experience in the HP forum I would like to direct your attention to the HP Forums Guide Learn How to Post and More
I grasp you are trying to change the boot order. Here is a link to Configuring the Boot Order in the System BIOS
that will assist you.
Good Luck and Happy Holidays!
Sparkles1
I work on behalf of HP
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping! -
How to load the exist Data Mart Request in to cube.
Hi Friends,
I have a scenario... i got DSO and one Cube , iam loading the data from DSO to Cube .
The number of records are more in the DSO and due to some clculation in the routine i need to load the data year by year(i got 2007 and 2008 year daya). I have loaded the 2007 data to the Infocube and in the DSO i can see the Data Mart Symbal against the Request Id when th load is finished successfully.
When iam trying to load the 2008 data from DSO to Cube iam getting the "0" records. I realised that the Data Mart symbal is exist in the DSO.
How to load the 2008 data in this scenario. If i delete the data mart sysbel means iam deleting the Cube request.
Can any have an idea on this.
Thaks in advance.HI,
Things are not clear.
How is loading happening if its delta or full load through DTP or you using 3.5 flow??
In any cases if you do a full load or full repair based on the year selection it should pick the records from the source...there is nothing to do with the data mart status in the case of full loads.
Data mart status will come into picture only when you schedule the delta loads.
Do a full load based on selections on year from the DSO to the cube...no need to delete the data mart or it will bring that request again delta is scheduled...does that request in DSO contains the data for 2008 only ...if yes then you can just delete the data mart status for that and do a delta...if not then do full loads as said.
Thanks
Ajeet -
I have enhanced standard master datasource , How to load the Text for it?
Hi Experts,
I had enhanced 0MATERIAL_ATTR with ZTGRM field.User exit is written and the data is populated and checked in RSA3.
Replicated,loaded in BW side.Activated the master data.It shows only the attribute not the text.
Tried loading 0material_text and loaded successfully, activated but while maintaining the master data , i can able to see only the attribute values not the text.
Can any one help how to load the text for the enhanced attribute?
Thanks in advance
Ganesh KumarHi Tony,
Loaded the 0MATERIAL_TEXT ,also sucessful.
After loading activated the 0material but i could only see values for 0material_attr not for the 0material_text.
Can you tell me how to load the text data to the newly enhanced attribute???
Maybe you are looking for
-
Why does the iPad Mini not have music play count?
I bought an iPad Mini and also have a macbook. I had listened to various music on my iPad Mini the other day, however when I connected the iPad Mini to the Macbook and iTunes via the lightning connector to sync, it synced the ratings I gave the songs
-
How to activate an old iphone (after restoring it) without a new data plan
First off thanks for any help – I've seen the support article Using an iPhone without a wireless service plan and it no longer seems to reflect the current setup for the iTunes Store. I have an old original iPhone that I've been using as an iPod. Wor
-
How to track changes in Quotation?
Dear All, My client wants to block the quotation if there is any change in quotation discount(price)? And it should go for the approval and an authorized person has to release the quotation. Is there any option in SD? Please let me know. Thanks in Ad
-
I need to create a temporary table that is transaction oriented (not session), insert data into it, and read the data. Apparently, each xsql:dml implies a commit. I cannot use "Preserve rows" (session related) in my table definition, and each commit
-
Inbound Stuck Queue in the SMQ2
Hi, One of the Q got stuck in the Inbound of the CRM system. It is showing the system status as "Running".IT has been in this staus for the past 2 days. When I try to activate it is giving Message"The queue is registered and therefore cannot be activ