the cell's overflow to find table - problem with script
Hello
as a translation company, we often do some DTP on Framemaker documents. Documents often contain many tables and the translated text will always enters the cells, giving overflow. I'm looking by creating a script that detects the overflow in the table cells.
I already tested a few scripts and met today with a problem that I can't find. I started detecting overflow from the cells in a selected table, that works very well and gives an alert when an overflow is detected. This script:
// == WORKS ON SELECTED TABLE == var doc = app.ActiveDoc; var tbl = doc.SelectedTbl; var row = tbl.FirstRowInTbl; var cell; while (row.ObjectValid () === 1) { cell = row.FirstCellInRow; while (cell.ObjectValid () === 1) { if (cell.Overflowed === 1) { alert("cell overflow Will Robinson!"); } cell = cell.NextCellInRow; } row = row.NextRowInTbl; } // == END OF WORKS ON SELECTED TABLE ==
However, I thought it would be nice to browse tables in a document and find all the cells of overflows, instead of going to table by table. If this script runs successfully in tables, lines and cells in a document:
// === LOOPS THROUGH TABLE, NO OVERFLOW === var doc = app.ActiveDoc; var tbl = app.ActiveDoc.FirstTblInDoc; var row = tbl.FirstRowInTbl; var cell; while (tbl.ObjectValid()) { alert ("gimme a table"); while (row.ObjectValid () === 1) { cell = row.FirstCellInRow; while (cell.ObjectValid () === 1) { alert("gimme a cell"); cell = cell.NextCellInRow; } row = row.NextRowInTbl; } tbl = tbl.NextTblInDoc; } // === END OF LOOPS THROUGH TABLE, NO OVERFLOW ===
When I add the block
while (cell.ObjectValid () === 1) { if (cell.Overflowed === 1) { alert("cell overflow Will Robinson!");
in this script, it does not work. According to the cell. Overwhelmed A requires the table to be selected? Does anyone know how to get around this problem - by selecting the table if the object is valid before performing a loop on the lines, or by the detection cell. A swamped in the above script?
I also - why not :) - I tried overflow under the doc.flow rather than FirstTbl, but although it detects flowes/frameworks and subcol correctly, it is not always register the overflow.
var doc = app.ActiveDoc var flow = doc.FirstFlowInDoc var frame = flow.FirstTextFrameInFlow var subcol =frame.FirstSubCol while (flow.ObjectValid()){ while (frame.ObjectValid()) { while (subcol.ObjectValid()){ if (subcol.OverFlowed === 1){ alert("colsies"); //doesn't work! } subcol = subcol.NextSubCol } frame = frame.NextTextFrameInFlow } flow = flow.NextFlowInDoc }
I'm clearly missing something, but I can't know what? Any help would be greatly appreciated...
Kind regards
Geert
Your code in the second script isn't quite right. Try this:
var doc, tbl, row, cell; doc = app.ActiveDoc; tbl = doc.FirstTblInDoc; while (tbl.ObjectValid ()) { row = tbl.FirstRowInTbl; while (row.ObjectValid ()) { cell = row.FirstCellInRow; while (cell.ObjectValid ()) { if (cell.Overflowed === 1) { alert ("Cell overflowed"); } cell = cell.NextCellInRow; } row = row.NextRowInTbl; } tbl = tbl.NextTblInDoc; }
Tags: Adobe FrameMaker
Similar Questions
-
Hi I find a problem with my iPad 2 Air... I delete almost everything about him and he always tells me almost full storage! can someone help me on this problem pls thank you
Hello
Try a reboot press & hold the power button / stop & menu button
Hold both down until you see the Apple logo.
What is your ipad 16g / 32g or higher?
See you soon
Brian
-
iTunes error update
I am trying to install an update to iTunes on my laptop and find the folowing part-way through the installation error:"There is a problem with this Windows Installer package. A program run as part of the set up did not complete as expected. Contact your provider to support personal or package. »
I got iTunes for 3-4 years now and have always been able to install updates successfully, so don't not sure what is the problem.
I tried msconfig and changed the boot process, so it includes all of the non-Windows elements, as suggested on the Microsoft Web site, but that has not worked.
Can anyone help?
Thank you
The instructions were to contact the vendor of the package. This isn't iTunes, Microsoft.
Ask the question in the Apple Forums:
https://discussions.Apple.com/index.jspa -
6.2.16: when you try to update ITunes on my Windows laptop, I get the following error message: "there is a problem with this Windows Installer package. A program required for this teaching to complete could not be run. Contact your supplier of staff or the package of support ". There is no associated error code. I've never had a previous issue with ITunes updates. Thank you, Debbie
Repair Apple Software Update since the programs & features Panel configuration and then try again.
For general advice, see troubleshooting problems with iTunes for Windows updates.
The steps described in the second case are a guide to remove everything related to iTunes and then rebuild what is often a good starting point, unless the symptoms indicate a more specific approach.
Review the other boxes and other support documents list to the bottom of the page, in case one of them applies.
The more information box has direct links with the current and recent if you have problems to download, must revert to an older version or want to try the version of iTunes for Windows (64-bit - for older video cards) as a workaround for problems with installation or operation, or compatibility with third-party software.
Backups of your library and device should be affected by these measures but there are links to backup and recovery advice there.
TT2
-
Hi, I try to connect to hotmail and received the following message ' sorry, there's a problem with Hotmail right now Hotmail was not able to complete this application. Microsoft may contact you about any matter that you declare "what steps should I take as I have urgent e-mail to check." THX
Hello
Looks like a temporary problem.
Answers is a peer group supported and unfortunately has no real influence on Hotmail.
HotMail has its own Forums, so you can ask your questions there.
Windows Live Solution Center - HotMail - HotMail Forums Solutions
http://windowslivehelp.com/Hotmail - Forums
http://windowslivehelp.com/forums.aspx?ProductID=1Hotmail - Solutions
http://windowslivehelp.com/solutions.aspx?ProductID=1How to contact Windows Live Hotmail Support
http://email.about.com/od/hotmailtips/Qt/et_hotmail_supp.htmWindows Live Hotmail Top issues and Support information
http://support.Microsoft.com/kb/316659/en-usError message "your account has been locked" when trying to connect
http://windowslivehelp.com/thread.aspx?ThreadId=77be7d82-a0e9-49c7-b46d-040ec654a9e2Compromised account - access unauthorized account - how to recover your account
http://windowslivehelp.com/solution.aspx?SolutionID=6ea0c7b3-1473-4176-b03f-145b951dcb41Hotmail hacked? Take these steps
http://blogs.msdn.com/b/securitytipstalk/archive/2010/07/07/Hotmail-hacked-take-these-steps.aspxI hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">->
-
Hello
I have the dell vostro 3450. I have problem with "ST Micro Screen detection sensor is not compatible with win 7.
can someone help me please.THX,
Sepahdarhttp://en.community.Dell.com/support-forums/laptop/f/3519/t/19390317.aspx
-
I can't have the option in menu to 13 items to work. Any ideas? I have already downloaded all the Templates menu and updated the software. I never had this problem with 7 elements. With the help of 13 elements, I can successfully burn my movie on a disc (DVD) without menu. The burning process is interrupted after that I added a menu.
Rick
First of all, please remove the stopper at the end of the content of the timeline. It is not necessary it and burn the causes of the problems.
The main Menu marker should be OK, no similar problems as the stopper a.
RTA
-
I can't import my script (film) into Adobe Story. The error message says: I am unable to connect to the Adobe servers. Is this a problem with the Adobe?
Yes and no it seems that if the file is a .doc or .pdf, that it does not load properly. But if I bring him in a Final Draft format, it works perfectly.
Adam
Sent from my iPhone
-
Problem with script on the master page
So I have my build script of the unique number bit that I have posted here before... it's on the Initialize event of the field.
If (this.rawValue == null) {}
var d = new Date();
this.rawValue = parseInt(d / 1000);
}
else {}
this.rawValue = rawValue;
}Which works very well if on the body of the form, but if I put it on the master page it re - initializes (and changes the number) whenever a subform gets shown/hidden. No idea how to stop it from doing this? I tried it on a few other events without a bit of luck.
I came across another problem with this script, a field called 'Date' was interfering with the script - throw an error "the Date is not a constructor. Is - this normal (function/field collision)?
Hi Jono,
I had problems with script within the Master pages before. What I've done in the past, it is a textfield hidden in the main pages of script with overall binding (which featured many here today); then same name textfield in the master page picks it up.
Good luck
N.
Post edited by: Niall O'Donovan
-
referring to the movieclips on stage in a table problem
I have a movieclip on the stage in which I have a few 90 movieclips on the stage.
I created a table to organize clips.
But when I try adding eventlisteners to these movieclips in cycling through the table, I get an error 1009 ("could not parse the XML code. Error #1009: cannot access a property or a method of a null object reference. ('') Curiously, however, the application seems to work fine, manage my listener events.
However, if I add eventlisteners for each movieclip individually, everything works fine - no error is thrown.
Can someone please point out my error?I found the problem...
I feel sheepish on the subject, but I misspelled of MovieClip instance names in the code (there are 90 of these clips).
This is why the error was generated, but some parts of the application still work.
Thanks to all who responded!
-
No sound
all the drivers r correct work nHello Mohamed Ali,
1. don't you make changes to the computer until the problem occurred?
You can try the methods below to resolve this issue.
Method 1:
I suggest that you run the Audio troubleshooter on your Windows 7 computer, it looks for common problems with your volume settings, your sound card driver and your speakers or headset:
Check out this link: http://windows.microsoft.com/en-US/windows7/Open-the-Playing-Audio-troubleshooter
Method 2:
Configure the playback devices from the default on your computer.
a. Click Start, type Sound in the box to start the search.
b. click sound in the results of search at the top of the start menu.
c. click the Read tab.
d. on the tab 'Read' it has listed the sound options at your disposal.
e. Select the default playback device (the playback device will be the audio adapter on your computer)
Thank you
Irfan H, Engineer Support Microsoft Answers. -
Trying to access a Windows Live/Hotmail account via the Internet and receive continuously "Sorry, there is a problem with Hotmail right now"
I can not connect to the help of other accounts, but not a specific account. I tried https, different browsers, in cleaning hide, etc.Who can I contact to solve immediately...? Try to organize a funeral across multiple members of the family in several States and I need to access my email.Thank you!Hello
As you use Hotmail, and the question you have posted is related to hotmail, so it would be better suited to the community of Hotmail. Please visit the link below to find a community that will provide the best support.
Portal Hotmail solution Center
-
The following text has been a constant problem with WINDOWS UPDATE
Problems found Details of detection 5The search for updates failed Detected Windows Update has encountered an error, search for updates online.Details of connectivityEvents about the problems of connectivity to the Windows Update servers. Level: WarningJournal: Microsoft-Windows-WindowsUpdateClient/Operational Date: 21/12/2015-15:38:01 Message: Lost connectivity Windows Update. Scan detailsWindows Update has encountered an error when searching for updates. Error code: -2147012721 Details of detection Network Diagnostics logName of the file: CF447702-14FA-4B21-A189-F9E798519E3D. Diagnose.Admin.0.etl Other newspapers and Network ConfigurationName of the file: NetworkConfiguration.cab Collection information Computer name: PAULETTE-LT Version of Windows: 6.1Architecture: AMD64Time: Tuesday, January 5, 2016 20:26:20
In this case, it is recommended first to check if your Internet connection is working properly. To do this, open a browser (such as Internet Explorer, Google Chrome, Mozilla Firefox, etc.) and type in any website (such as www.google.com, www.yahoo.com, etc.) in the address bar. Press the Enter key on your keyboard to start the Web page. If the Web page does not load, then it may be a problem with your Internet connection. We recommend that you follow the troubleshooting options mentioned on the links below to solve this:
http://Windows.Microsoft.com/en-us/Windows/cant-connect-Internet#1TC=Windows-8
http://Windows.Microsoft.com/en-us/Windows/network-connection-problem-help#network-problems=Windows-81&V1H=win81tab1&V2H=win7tab1&V3H=winvistatab1If the Web page loads successfully, then your Internet connection works well. In this case, run the tool in troubleshooting Windows Update from the link below and see if it works:
http://Windows.Microsoft.com/en-us/Windows7/open-the-Windows-Update-TroubleshooterHope this will help you.
-
I'll upgrade my desktop PC, by changing the motherboard, processor and SSD drive with the OS on it to boot. I have a problem with the reactivation of windows, and should I turn it off, somehow first, or the previous version will be considered as-enabled automatically? It is a retail, windows 7 64 ultimate version. Please advise, thanks in advance.
Just reactivate by phone:
How to activate Windows 7 manually (activate by phone)
1) click Start and in the search for box type: slui.exe 4
(2) press the ENTER"" key.
(3) select your "country" in the list.
(4) choose the option "activate phone".
(5) stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
(6) explain your problem clearly to the support person.
http://support.Microsoft.com/kb/950929/en-usRemember, if it is a retail upgrade license:
However, the requirements for the media upgrade is that you have an operating system already eligible such as Windows XP or Vista installed to use it. Since the Windows 7 end user license agreement.
15 UPDATES. To use upgrade software, you must first be licensed for the software that is eligible for the upgrade. After the upgrade, this agreement takes the place of the agreement for the software that you upgraded. After upgrade, you can no longer use the software that you upgraded.
So, if you are always denied, you will just have to reinstall Windows XP or Vista and let it do the verification of eligibility.
You can skip to enter the product key and try the activation of the phone to work around this problem.
-
I can't download the new itunes update. Error message says "there is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your supplier of staff or the package of support ".
I was running itunes perfectly well before trying to download this update. ITunes is not yet available.
Original title: update iTunes Application program compatibilityThanks for your help. Unfortunately no idea worked. Windows Installer 4.5 is not good for Windows 7. However, I was able to restore my computer to an earlier date and the previous itunes was there. It still would not allow me to access without security clearance, but I finally understood how to afford access - I am the administrator and the only user - go figure!
Thanks again.
Maybe you are looking for
-
latest updates changed my home page to pages I hate im getting fed up
Until the 2 latest updates, I liked Firefox & has never had a single problem, I was happy for the years...Now, I'm afraid of updates & turn down them because Firefox has started to change my home page & etc, forcing me to waste configuration & restor
-
The vertical scroll bar on the right side of the screen disappears when the web site I visit is short enough to not to require a scroll bar (i.e. is there no need to scroll upwards or downwards, because everything fits on one screen). If I move to an
-
Windows Vista crashes due to the update of windows
I just reinstalled Windows Vista 32 bit on my Lenovo PC after experiencing problems due to a virus. However, during the execution of that Windows update, I started noticing problems because my computer would freeze randomly. Neither the mouse nor key
-
I LOST MY CD OF INTALLED MY PRINTER WHERE CAN I GET THIS IMFORMATION ON HP
I need help to connect my printer to my deskpc window 7, I lost my cd of intalled my hp deskjet f4580 wireless printing, scanning, copying, if I can get this imformation on the web
-
"Documents.Library - ms" is no longer.
I agree with the fix, but why is this happening again and again. Whenever I'm in the library, the same message. Fix once it should be enough. Someone knows why this error occurs?