How to close 100 documents in CS5 desktop application
Hi,
I have list of document e.g 100 and want open,flow,save and closed it.
The step i have taken is
1.Opening a document as
SDKLayoutHelper objLHelper;
UIFlags uiFlags = K2::kSuppressUI;
IDFile idTemplateFile;
FileUtils::PMStringToIDFile(sTemplatePath,idTemplateFile);
docUIDRef = objLHelper.OpenDocument(idTemplateFile,uiFlags);
2.Importing template native xml on document.
3.Saving document as
IDFile idDocFile;
FileUtils::PMStringToIDFile(sDocpath,idDocFile);
objLHelper.SaveDocumentAs(docUIDRef,idDocFile,uiFlags);
4.And Closing document as IDocFileHandler::CloseCmdMode cmdMode = IDocFileHandler::kSchedule;
objLHelper.CloseDocument(docUIDRef,kFalse,uiFlags,kFalse,cmdMode);
But problem is that indesign unable to close document instantlly due which memory is going up and indesign crashing at the end.
What should to do?
Thanks
Qamar
Hi,
I have found solution of my problem.It is something trikey but it working fine.
As a beheviour of indesign desktop cannot possiable to do that so you can do as
1.For example you have 100 documents in your for loop
2.open document by calling javascript
var myDocument1 = app.open("E:\\Templates\\MyDoc.indt",false);
2.Save by sceond javascript call
if(app.documents.length != 0)
var activedoc = app.documents[0];
activedoc.save("E:\\Templates\\MyDoc.indd");
3.Get a document index no and by that achive a document pointer by using one script provider event that will used in the C++ code
if(app.documents.length != 0)
var activedoc = app.documents[0];
var s = activedoc.toSource();
var ret = app.speak(s);
4.And finally closed the document
if(app.documents.length != 0)
var activedoc = app.documents[0];
activedoc.close();
Hopefully helpfull to such problem.
Thanks
Qamar
Similar Messages
-
When will Adobe Reader Touch App for Surface be able to draw on documents like the desktop application?
We have noted down your feature request. We might consider providing support for drawing on PDFs in our upcoming release.
-
How to start/stop/restart a java desktop application from remote machine
Hi,
I want to know is there a way in java where i can start/stop/restart a java desktop application running on a remote machine through another java desktop application?
For e.g i have an Admin console which monitors its clients based on socket communication, all of them are java desktop applications. I want to also give start/stop remote clients through my Admin console.
I am thinking in terms of windows system service which can start/restart/stop my clients on request of Admin console, but how can i call this system service remotely?
How can i do it?I got it. its about connection...
-
How to allow multiple instances of air desktop application
hi all
Adobe air desktop application only allow single instance of
application. How to allow multiple instances like in other desktop
applications?.
thanksThanks a lot morgair, i will check with exe4j tool.
Actually the problem is, thread is not waiting for second request.
thatswhat i thought it may because of thread.
Thanks & Regards
Sudha -
How to make a installation file in desktop application??
hello everybody,
Actually i want to make a installation file for a desktop application.I know there are some thirdparty software vendors who are providing that. Let me know if any other tool is there in java to make a installation file for any desktop application.
Thanx in advancewell im not sure if there is an application but i do know you can use .bat files to open applications if your not sure what a .bat file is just msg back and ill explain and ill also do a example if you want so just ask ok soon ill rellase a link to my web-page so you can ask me stuff there soon and you can anwser other peoples questions
-
TS4040 How to close preview document?
Preview document unable to change, remove and save. it seems dead, how to closed it?
ThanksIf you can't close Preview, go to Apple menu > Force Quit or press Alt, Command and Esc keys, select Preview and press Quit or Force Quit
-
How to play flash in an C++ desktop application?
I am designing an application that is written in C++ but a
quarter of the screen has to play flash so that the flash part can
communicate with Flash Media Server to get FLV video playing, how
can this be done?
Is there a class in C++ that is able to 'play' flash? and at
the same time communicate with flash?Well, there is the C level extensibility library:
http://livedocs.adobe.com/flash/9.0/main/00004601.html
http://weblogs.macromedia.com/jd/archives/2004/03/flash_c-level_e.cfm
But I don't think that will get you quite what you want,
becuase there is no C class that embeds Flash Player that I'm aware
of.
If it has to be a desktop app you should be looking at Adobe
AIR as a delivery mechanism:
Check it out on
http://labs.adobe.com/. -
How to Edit Word Document in Oracle ADF Application - Apache POI
Hi All
I was wondering if there is a way to edit and save word documents in Oracle ADF without loosing the Formatting.
I was able to edit and save the word document however the Formatting was lost.
Please let me know if there are any pointers or open source Java APIs that we can use to achieve this.Refer the Text Formatting section
Apache POI - HWPF - Java API to Handle Microsoft Word Files
HWPF Reads in a Word document with minimum formatting (no lists, tables, footnotes, endnotes, headers, footers)
Apache POI - HWPF - Java API to Handle Microsoft Word Files
The _cbt field in class HWPFDocumentCore contains formatting information.
HWPFDocumentCore (POI API Documentation)
For more advanced text extraction needs, including Rich Text extraction (such as formatting and styling), along with XML and HTML output, Apache POI works closely with Apache Tika to deliver POI-powered Tika Parsers for all the project supported file formats.
Apache POI - Text Extraction
Use Apache Tikka for formatting.
Apache Tika - Supported Document Formats -
How To Download a File into your desktop application
Hello,
I am attempting to have an AIR application use a webservice XMLCollection when online, but what I would like to do is also provide an AIR application for download. I think that the AIR application is using the files installed locally, what I would like to do is have the AIR application check to see if it is online and then download a file (and store it for later offline use) if it is to get the latest information?
Anyone have an example of how to do this? I just can't wrap my head around it.You aren't the first person to ask that question. Here's a great blog post with a simple example to get you going.
http://jimmyflex.blogspot.com/2008/08/download-server-file-with-air.html
-Marty [ http://www.theflexguy.com ]
Helpful/Answered? Don't forget to mark it that way. -
Windows min, max and close buttons are gone my desktop applications
the min, max and close buttons are gone.
I have windows 8.1 running in a VMware view environment. if I do a system restore to an earlier date they will come back. but after some windows update they go away again.
any ideas on what I should be looking for?Hi,
Did you install any 3rd application recently? You can use ShellEX to check shell problem.
http://www.nirsoft.net/utils/shexview.html
If problem persists, please try to use command below to fix your problem.
Dism /Online /Cleanup-Image /ScanHealth
Roger Lu
TechNet Community Support -
How to open a url from a desktop application
Hi this may seem like a very easy question but all the topics online point to the following code....
var url = "http://www.adobe,com";
var urlReq = new air.URLRequest(url);
air.navigateToURL(urlReq);
However when I try to use this I keep getting an 1120 error saying that a definition for air could not be found.
Can someone please give me some fast direction?I tried your suggestion...
Then after hitting myself in the head multiple times I came to say thanks
I really appreciate the help. -
How to use Xcelsius tool in Desktop applications
Hello
This is shankar, from IMS CRM4 team in SAP. We have a requirement for interactive anlalytics in our product and found that Xcelisus is the correct approach.
Can you please clarify the following
1. How to use the Xcelsius tool in desktop applications.
2. Is Xcelsius Viewer free version available which can used only to view the interactive analytics. Xcelsius designer is not required for all the users.
Thank You
ShankarHello Victor
Thank you for your inputs !!
Point 2 is very clear to me that we do not need any additional software to run the SWF files.
We have CRM Mobile offline product with Crystal reports integrated already. CRM Mobile Offline solution is a desktop application and there is no intutive analytics.
So i would like to know more on how to link the data (Excel or XML) to Xcelisus tool and get the output SWF file. Can it be done through the command line (without using Xcelsius designer) ??. Do we need to have any licensed version of Xcelisus for this task??
This will promote both our prodcut and BOBJ Xcelisus prodcut as well
Regards
Shankar -
hi,
I'm developing a java application which will involve a pop up text box (a JPanel). This has a JButton that when pressed will cause the pop up box to close but not the actual application. I've tried System.exit(0); but this causes the entire application to close.
Could someone tell me how to close the window but keep the application running.
CheersSwitch it to invisible, and dispose it.
-
Re:Close all Forms in Multi-form application
how to Close all Forms in Multi form application's
The easiest way would be to create an "initialize"-procedure in a pll, which simple default all the needed globals, if the do not already exist (using DEFAULT_VALUE), and call that procedure form every form in the PRE-FORM-trigger. It won't affect the "integrated" system because it only defaults values if they are not already initialized.
-
How do I save a pdf document to my desktop?
How do I save a pdf document to my desktop?
You can use the Save As feature to save a copy to a different location.
1. Open a PDF document in Adobe Reader Touch.
2. Bring up the toolbars by swiping up from the bottom edge (Touch) or right-click with a mouse.
3. Tap/click the Save As button in the bottom toolbar.
(Click the image above to enlarge)
For Windows 8/RT
4a. In the File Browser, tap/click the down arrow button in the top left corner.
5a. Select Desktop from the drop-down menu.
6a. Tap/click the Save button.
(Click the image above to enlarge)
For Windows 8.1/RT 8.1
4b. In the File Browser, tap/click the down arrow button in the top left corner.
5b. Select This PC from the drop-down menu.
(Click the image above to enlarge)
6b. Tap/click the Desktop button.
7b. Tap/click the Save button.
(Click the image above to enlarge)
By default, " - Copy" (in your UI language) will be appended to the original file name. You can change the file name to something else, if you'd like.
Maybe you are looking for
-
Help! No Audio output In Logic Express 7
I have been running logic 7 Express with a MOTU Traveler for over a year now (with very few problems), and just this morning i have encountered a very puzzling problem. When i opened the song i was working on last night, i found that there was no aud
-
Canon Pixma 180 Navigator/Scanner stopped working with Snow Leopard?
Hi, I recently got a new IMac with Snow Leopard. Everything was backed up from Tim Machine and the Apple store installed the drivers for my Canon MP Pixma 180 all-in-one printer. The printer does work but my Navigator shuts down when I choose the Sca
-
Converting (,) from a field
In atable I have a field called Address which contains addresses like 1234 c dr, la, 00000 want to remove all the coma(,) with blank please advice me how to do it I'm new for sql BR
-
I've been printing without any problems until now--and now I am getting a message that says "no print has been selected." Anyone know what I need to do now. Nothing I try seems to work.
-
Flash player not recognized with Internet Explorer
I have tried everything and cannot view youtube videos with IE explorer 10 or 9. I had IE 10 and uninstalled this update to go back to IE 9. This did not help. I have removed and reinstalled Adobe Flash Player (latest version) 6 times. I have disabl