How to get active Document?
UIDRef docUIDRef = GetDocumentUIDRef (widget); Result: fDB = 0x05ccc310, fID = 1
InterfacePtr < IDocument > document (docUIDRef, UseDefaultIID());
Happen error:
__vfptr = CXX0030: error: expression cannot be evaluated
But I opened the file in the sdk, it's ok.
IdFichier fSysFile;
FileUtils::PMStringToIDFile ("D:\\test.indd", fSysFile);
SDKLayoutHelper layoutHelper;
UIDRef docUIDRef = (fSysFile) layoutHelper.OpenDocument;
InterfacePtr < IDocument > document (docUIDRef, UseDefaultIID());
How to get active Document?
Thank you
You can use the ILayoutUIUtils to get a reference to the current document. The code would be as below
iDocument * iDoc = Utils
-Manan
Tags: InDesign
Similar Questions
-
He can not get active document after the outbreak of the SignalResponderService.
Hello world
I tried to edit a document of right after opening.
I use kAfterNewDocSignalResponderService signal to intercept the signal to open a new document.
But unfortunately, when this signal fires, the document is not actually opened.
So I can't do the title of document UIDRef.
Can someone tell me how to catch him.
Thank you.
Duy
Hi Duy,
the answering machine gets a signalMgr as an argument that has an IDocumentSignalData interface on his boss class. From this interface, you get the document.
Markus
-
How to get the documents and pictures off dead PC with Windows XP to Windows 7?
have a computer laptop w / W7 and a pc with XP that does not work. on the laptop, I can only find documents/photos for the user of the original laptop. We use msn as our Internet service provider. can I get my documents/pictures power off the pc dead to show on the laptop. I get my mail and I know it's on the storage of Ms do not know what can be done on the other info. I have a driver to drive external but not ready to be the pc immediately. There is an icon on the desktop page original user ID but have not been able to get an icon for my log show.
Hello
1. you try to transfer data from the laptop XP to Windows 7 computer?
2. What do you mean by icon storage and user of MS?
3. what exactly happened to the XP computer?
Be more specific to help you better. Visit this link: http://support.microsoft.com/kb/555375
-
Cannot get active document when the user clicks on the document in Adobe FM 2015.
I am facing the following problem:
I have a timer in my application that strikes several times after 2 seconds to get the name of the current document (if there is).
If the user selects text (the click of the mouse down) of the current document in Adobe FM 2015 then the following API call returns 0 (which is false):
F_ApiGetId (FV_SessionId, FV_SessionId, FP_ActiveDoc)
Later, if the user leaves the mouse (click of the mouse to the top) then in the next hit of the timer the document name is extracted.
It seems that the Adobe FM 2015 cannot manage simultaneously the two entries of the user of the application and the API in my application calls.
Why is this happening?
It seems that Adobe FrameMaker 2015 cannot handle at the same time user UI events and FDK API calls from external applications.
When user interacts with the application FM calls API FDK for my failure in the external application with error codes.
-
*.pls must recompile after revised? How to get active after revised?
Hi all
as the topic, I changed the code of POXVDCKB.pls, there need to recompile? How to make it active?
My environment is: ORALCE EBS R12.1.2 | AIX 6.1
Concerning
Terryas the topic, I changed the code of POXVDCKB.pls, there need to recompile? How to make it active?
It is a seeded file, no matter what reason you have to change it?
To run the pls file, you will need to connect to SQL * more and run the file (such as the execution of any SQL script).
You may also need to run the script to re-create the package specification.
Please note that you will lose all changes if you patch the instance with a patch that has the same file.
Thank you
Hussein -
How to get scanned Document to attach to Sendnow?
We have recently upgraded to Acrobat X Pro, but since then a scanned document is not detected/home automatically trying email through SendNow, any thoughts?
I did not quite understand the difference at first, but now I do, we tried to use the file > attach as e-mail, but there actually to the share bar to attach something without it auto attach the open document by unchecking the option of sharing bar opened in the preferences to tie it to auto email attached the document without problem. Thank you.
-
VIMSH - how to get active correctly vmotioned
Could Hello - anyone tell me what I'm not doing? I enter the following command in the command line and it works very well to enable vmotion, however, it does not work in my script where everything is:
% post
Cat & gt;/tmp/ESXpostconfig.sh & lt; & lt; EXPRESSIONS OF FOLKLORE
#! / bin/bash
#esxcfg - vswitch - L vmnic1 vSwitch0
Add switch prod vSwitch1 and vSwitch2 and configure links rising further addition of uplink service console
esxcfg-vswitch - L vmnic2 vSwitch0
esxcfg-vswitch - a vSwitch1
esxcfg-vswitch - L vmnic1 vSwitch1
esxcfg-vswitch - L vmnic3 vSwitch1
esxcfg-vswitch - a vSwitch2
esxcfg-vswitch - L vmnic4 vSwitch2
esxcfg-vswitch - L vmnic5 vSwitch2
Add groups of ports and VLANS vSwitch1 and vSwitch2
esxcfg-vswitch - a linux_network vSwitch1
esxcfg-vswitch v - 401 - p linux_network vSwitch1
esxcfg-vswitch - a vSwitch2 windows_network
esxcfg-vswitch v - 402 - p windows_network vSwitch2
#Configure NTP
echo "Configuring NTP"
echo 'restrict kod nomodify notrap noquery nopeer' & gt; /etc/ntp.conf
echo "restrict 127.0.0.1" & gt; & gt; /etc/ntp.conf
echo "Server ntp.brown.edu" & gt; & gt; /etc/ntp.conf
echo "Server ntp2.brown.edu" & gt; & gt; /etc/ntp.conf
echo "driftfile/var/lib/ntp/drift" & gt; & gt; /etc/ntp.conf
echo "Server ntp.brown.edu" & gt; / etc/NTP/Step-tickers
echo "Server ntp2.brown.edu" & gt; / etc/NTP/Step-tickers
additional configuration steps for NTP
ntpClient - e esxcfg-firewall
chkconfig--level 345 ntpd on
/ sbin/hwclock--systohc - utc
service ntpd restart
set up authentication with AD
esxcfg-auth - enablead - addomain = ad.brown.edu - addc sorry = cannot display this info
service mgmt-vmware restart
Add users
Sorry, can not display this
root #enable login
Perl - p - i.old e ' s/PermitRootLogin No./PermitRootLogin Yes / g ' / etc/ssh/sshd_config
service sshd restart
#Unload the VMFS-2 module
vmkload_mod vmfs2 u
Add vmotion kernel port to vSwitch0, configure IP VMkernel, add the uplink for redundancy
#esxcfg - vswitch - a Vmotion vSwitch0
#esxcfg - vmknic - a-i 128.148.176.228 - n 255.255.255.0 Vmotion
#esxcfg - vswitch - L vmnic1 vSwitch0
#esxcfg - road 128.148.176.1
enable Vmotion
' vimsh - n-e' / vmotion/hostsvc/vnic_set vmk0.
EXPRESSIONS OF FOLKLORE
Help!
I use a slightly different ks file taken to deployment ESX (AED) unit:
service mgmt-vmware restart
Waiting for go to accept connections from the echo...
sleep 180
some time; do
sleep 5
Waiting for go to accept connections from the echo...
fact
echo 'Configuration VMotion'
cmd-vim-VMware vmotion/hostsvc/vnic_set vmk0
VMware-vim-cmd internalsvc/refresh_network
-
I am newbie in indesign scripting of animals. So I apologize because I couldn't post my essays.
Objective:
I have a .indd document which will be a figure of legend, label etc. I need to copy the content (a figure that is editable) else file indd of this document where the tag figure exists.For example:
Sample.inddSome text Fig.1.1 caption some text
I need to copy the contents of figure1.indd and paste in the document sample.indd where
Fig.1.1
string exist and so forth. Now I do it manually. But am supposed to automate this process.So, I need some hint how to do it using extendscript?
I found something like below, to do so, but I have no idea to develop it further and also do not know if this approach is correct my results. Please help me
myDocument=app.open(File("file.indd"),false); //opening a file to get the content without showing.
myDocument.pages.item(0).textFrames.item(0).contents="some text"; //here I could set the content but I don't knw how to get the content
// ?????? Then I have to paste the content into active document.
Try this test nicely to your and end, hope this will help you.
var myDoc = File("/D/Sample.indd");//Figure File var myFigDoc = File("/D/Figure.indd");//Destination File app.open(File(myFigDoc)); app.activeDocument.pageItems.everyItem().select(); myObj = app.selection; var myGroup = app.activeWindow.activePage.groups.add(myObj);//Grouping the objects myGroup.select(); app.copy(); app.open(File(myDoc)); app.findGrepPreferences = app.changeGrepPreferences = null; app.findGrepPreferences.findWhat = "Fig 1.1";//Figure caption text app.findGrepPreferences.appliedParagraphStyle = "FigureCaption";//Figure Caption Style myFinds = app.activeDocument.findGrep(); for(var i=0;i
-
How to get the file name of the current active document in InDesign CS4?
Hello
If I open a document in the file-> open, I can get the file name of the document using IOpenedFileInfo-> GetOpenedFilePath().
But, if I create a new document and run the file-> save as, GetOpenedFilePath is invalid back reference IdFichier.
What is the right way to get the file name of the active document?
Thank you
VSP
You can try this:
IDatabse * db =: GetDatabase (theDoc);
IdFichier * SYSIXCOL = db-> GetSysFile();
PMString docName is SYSIXCOL-> GetFileName();.
Good luck
-
I downloaded Acrobat Pro and paying by monthly subscription, but when I open a document I always get a window with a message 27 days remaining in your trial period. How to get rid of this message?
Sign out of your account of cloud... Restart your computer... Connect to your paid account of cloud
-If you have more than one email, but of course you use linked to your subscription
-Connect using http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
-https://helpx.adobe.com/creative-cloud/help/sign-in-out-activate-apps.html
-http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
-https://helpx.adobe.com/x-productkb/policy-pricing/activate-deactivate-products.html
-
Get the path of the active document from Photoshop
It works in Photoshop and Bridge script (Javascript)
var myPath = activeDocument.name;
Tester.PSD
This only works in Photoshop script (JavaScript), but not in the bridge.
var ProcessFolder = activeDocument.path
actually stops the script, without error or warning.
How can I get the path to the file in the active document in Photoshop through Bridge?
Thank you!
Hello
You can use BridgeTalk to communicate between applications
In this case, there is the code and you must run it from the bridge to get the information you need for photoshop:
// run this from Bridge to get the path of the active document // if photoshop is not running, it gives that message // if photoshop is Busy, it gives that warning // if photoshop has any images opened, it avoids getting the path and warn you pathFromPS(); function pathFromPS() { var bt = new BridgeTalk; bt.target = "photoshop"; bt.body = '(app.documents.length > 0) ? app.activeDocument.path : "No active images";'; bt.onResult = function (resObj) { activePath = resObj.body; } if (BridgeTalk.getStatus (bt.target) == 'IDLE') { bt.send(3); } else { activePath = (BridgeTalk.isRunning(bt.target)) ? "[Busy]" : "[Not Running]"; } return activePath; }
-
My iphone screen just broked. How to get a free display Exchange if repairs and Service coverage is still Active?
I found a few shops bestbuys and apple around me.
Thank you very much!
Jerry
There is no exchange of free display. You will pay is the AppleCare + fresh incident (if you bought AC +), or the elimination of guaranteed replacement costs / costs of replacing the screen. Your best bet would be to visit the Apple store with a genius bar appointment.
Make a Genius Bar reservation (or cancel an existing reservation)
http://www.Apple.com/retail/Geniusbar/
Log in using your Apple ID.
-
How to print a document all e-mail and not a 'screenshot' that I get in the option Print Preview. I would like to print "file" "as I can on other browsers (IE, for example). When I try to print from Firefox it catches all my info (shirts, etc.) from the left side of the page. I need only e-mail information, not information of the entire screen. Thank you!
-Bruce
I had the same problem at first. You open the e-mail as usual. And then in the Actions drop-down list box, you select the print option. This has worked for me and printed the actual e-mail only.
-
How to get rid of internet shortcuts mass contained in the document library?
I tried to add a folder my documents. Seem to have merged now all my "Favorites" in the toolbar with my documents.
Documents are now full of internet shortcuts and I do not want the files.
Use the working documents and they need to see that word or powerpoint or pdf files, not stuff from the internet.
Don't know how I did it or how to get rid of all these files.
Can anyone help please? Thank you
Hello
I don't know what you have enabled.
Do a system restore, if necessary using the safe, before the problem started.
http://bertk.MVPs.org/html/restoresysv.html
How to access Safe Mode
http://www.bleepingcomputer.com/tutorials/how-to-start-Windows-in-safe-mode/#Vista
See you soon.
-
I went to my documents and I had this issue, and I clicked on something that is called HIDE and I don't know how to get to this file now! Anyone know where are the hidden files?
Go to start / Control Panel / folder Options / view and check the box to show the hidden files and folders and uncheck to hide extensions of known file types. Only the first is required for this problem, but the other may be useful later and you might as well do it while you're already here.
Now, you will be able to see the folder. It will be in the same place, it has always been (it has not been assigned) - it was just hidden and now that you can see hidden files and folders you can see again. You may notice that it deteriorated a little bit lighter that other records - it is a sign that it is a hidden file or folder.
I hope this helps.
Good luck!
Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.
Maybe you are looking for
-
I have an iMac 21.5 (end of 2013), with OS X El Capitan 10.11.4 and am using Safari 9.1. Make the updates on the app store for Pages, iMovie, Numbers and Keynote, now my Safari being auto fill my answers of security on a banking Web site. I NEVER c
-
Hola, buenas tardes a tod@s. Probably are una pregunta muy tonta pero no encuentro el modo poner el percent of the bateria e teclado, formation of visible, the ¿alguien me could resolver esta Cuestión, por favor? Gracias of photos.
-
Keyboard for Smartphones blackBerry with three languages + other question
Hello, question about the keyboard. I've used for several years, both physical KB (z30) virtual bb10 KB (passport - best physics kb). Something that both got kb was very well the ability to write in several languages at the same time, in the sentence
-
Virtual gateway Wirelles In-Band NAC Appliance
Hi, people. Knows someone like NAC Wirelles in-band Gateway Virtual Appliance configuration. TKS.
-
Question of Smartphones blackBerry OS6 and App World
I have a Blackberry Curve 9300 3 of Globe here in the Philippines and I was wondering if I can get OS6 installed in it and where can I find the App World? Any help is greatly appreciated. Sorry, it's my first Blackberry device.