Detecting TextAlignment in a Library based text Object
Hi All,
I have several text field objects that are shared (linked) to create a growing group text and button objects that are created at runtime. Oh, TLFtextField's are only being used, but that probably doesn't matter for the this set of issues.
I test the text as it is being filled in each text field to see if it overruns the field. Lots of layout and size variations.
I am inserting over 30 different languages into the text and will ultimately use RTL and BiDi (bi-directional) text. Some text is also center justified. Some text grows the text field too. I am automating this for testing and to help our translation service. We also have a translation database to reuse old phrases (but they may not fit new layouts).
So things that I need to detect are: Locale, Justification, Alignment, MultiLine, autoSize.direction, etc.The text Field will report x,y,w,h but not textFormatAlign (null) or direction (null - I believe from earlier tracing).
How can I extract the settings on these Library based text objects?
Do I have to expectedly set each feature that I have to text for when constructing the text instances I am placing on stage?
Would we classify the text object in the library as a 'Prototype' object? (to help me get my head around this and for others too) ?
Thanks,
Jim
Hi,
I already solved the problem, correctly implementing the lines count function, forcing a pagebreak upon the correct count of lines. But I'll follow up just out of interest in another solution :o).
The formulae in the problematic part of report are as follows:
The text field itself is formula based. Upon a condition it draws data either from one source column or from another one. The difference here is that one of the columns' data is a single line, while the other is four lines (i.e. includes three CRLF chars). In both cases the text can also be empty or null.
The text field's Can grow and Keep together are both on, the may number of lines is 0 (= can grow infinitely).
The section containing the field is a group footer of group level 2, suppressed based on a formula detecting whether the text was already displayed in the group of group level 1 (the higher level). This is done by a variable which contains the group1 identifier for previous group2 data. If the previous and current group1ID are not equal (which means that the current group2 record is the first one in current group1), the text is displayed, otherwise it is suppressed.
Also, the section is suppressed if blank (= if the text data are empty or null).
Just FYI, the last problem of the linescount function was solved by merging the two section-suppressing condition into one.
Hope it helps.
BR, Petr
Similar Messages
-
Text Object Error in Pdf based print forms
Hello Friends,
I am trying to include a text object in Adobe PDF-based print form.
In the context, I have created a node for the text. I chose the Text Type as Include Text. I am able to choose the required Text Object and Text ID from the respective search helps. When trying to activate the form, I am getting an error saying that I did not specify a text name. I tried to rectify this error but could not do so.
Please help me out on how to rectify this error.
Points will be rewarded for useful answers.
Thanks,
John.There is no need of activation for standard text... save will do...
Also note: standard text is client dependent... you need to attach to your transport request manually to move between clients...
Close the thread once your question is answered.
Regards,
Sairam -
Text Object with a Paramter Field in It
think I am losing my mind. I have a text object on my report for the 'From' and 'To' dates on a report. So that the spacing works between the words, I add a text object to my report and type the word "From" (without quotes). Then, I drag the start date into the field next to the word From. Then I type "To" and insert the ending date.
I right justify the contents of the field. I position the object on the right side of the report (not right at the margins about 1/4" in).
Just above this combined field, is a special field with the print date. It is also right justified and the two fields are right aligned.
The problem is when the report prints, the combined field isn't truly right justified. There are what appears to be extra spaces in it. The fields look similar to this...
02/20/2009
Report range 01/01/2008 to 12/31/2009
They should be perfectly aligned based on the CR layout. I have done some testing. If I remove the text and just leave the dates in the text object, I have the same results. It looks like it has something to do with the brackets that get placed around the parameter field when it is placed inside the text object.
Report range {?datdeb} to {?datfin}
Has anyone else run across this? I have noticed this on several of my reports and decided to try and find a solution.
Could it be a variable font issue? The problem goes away if I use Lucida Console (a fixed width font). It is somewhat better but not perfect with Verdana as the font. It is horrible when using Arial. I can't believe this is an issue that others have not run across. I searched the forum with no luck.
Thanks in advance.
Gilley EstesWith the help of one of our programmers, he suggested using a Trim function in case there were extra spaces in the field. So this is what I ended up doing.
Created a formula with the following:
"Report Range " + Trim (totext({?datdeb})) + " to " + Trim (totext({?datfin}))
?datedeb = beginning date parameter
?datefin = ending date parameter
By using the trim function, the extra spaces that were inserted into the field were removed.
Go figure! Oh well... At least there is a solution.
HTH someone in the future...
Gilley -
Can anyone help me. I have iPhoto 9.2 and Mac OS X 10.7.2.
Every time I open iPhoto 9.2 and try to go to photo stream iPhoto quits unexpectedly. When I reopen I get "iPhoto has detected inconsistencies in your library. Please click Repair to avoid any potential problems."
I have read plenty of the posts on the subject and it seems that deleting the "3ivx" fixed the problem. I looked at the detaied reports and see where it says "
Library/Application Support/3ivx" etc..
On my report it says "/Library/Application Support/iLifeMediaBrowser/*/iLMBiPhoto8Plugin". Does this help with an answer?I am also having this crashing problem. I am running lion on a 2010 mac mini. My iPhoto library is kept on an external drive. I just upgraded to iPhoto 11 and everytime I try to enable photo stream the app crashes. I have tried all the above suggestions, including re-installing iphoto from the Mac App store. Below are the first 50 lines of the error message. Any help would be greatly appreciated.
Process: iPhoto [430]
Path: /Applications/iPhoto.app/Contents/MacOS/iPhoto
Identifier: com.apple.iPhoto
Version: 9.2.1 (9.2.1)
Build Info: iPhotoProject-628000000000000~1
App Item ID: 408981381
App External ID: 4641130
Code Type: X86 (Native)
Parent Process: launchd [160]
Date/Time: 2011-11-02 22:33:22.628 -0500
OS Version: Mac OS X 10.7.2 (11C74)
Report Version: 9
Interval Since Last Report: 526713 sec
Crashes Since Last Report: 9
Per-App Interval Since Last Report: 4439 sec
Per-App Crashes Since Last Report: 8
Anonymous UUID: 8147E0FC-2622-4A56-920E-44498E48B55B
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
VM Regions Near 0:
--> __PAGEZERO 0000000000000000-0000000000001000 [ 4K] ---/--- SM=NUL /Applications/iPhoto.app/Contents/MacOS/iPhoto
__TEXT 0000000000001000-0000000000d1b000 [ 13.1M] r-x/rwx SM=COW /Applications/iPhoto.app/Contents/MacOS/iPhoto
Application Specific Information:
objc[430]: garbage collection is OFF
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.apple.iPhoto 0x00824501 0x1000 + 8533249
1 com.apple.iPhoto 0x001678d6 0x1000 + 1468630
2 com.apple.Foundation 0x91bdff49 __-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_1 + 49
3 com.apple.CoreFoundation 0x95508ff3 ___CFXNotificationPost_block_invoke_1 + 275
4 com.apple.CoreFoundation 0x954d3d78 _CFXNotificationPost + 2776
5 com.apple.Foundation 0x91bcb136 -[NSNotificationCenter postNotificationName:object:userInfo:] + 92
6 com.apple.Foundation 0x91be03ca -[NSNotificationCenter postNotificationName:object:] + 55
7 com.apple.iPhoto 0x0016716a 0x1000 + 1466730
8 com.apple.iPhoto 0x00167111 0x1000 + 1466641
9 com.apple.iPhoto 0x0015c6f4 0x1000 + 1423092
10 com.apple.CoreFoundation 0x95520e1d __invoking___ + 29
11 com.apple.CoreFoundation 0x95520d59 -[NSInvocation invoke] + 137
12 com.apple.RedRock 0x01d62e61 -[RKInvoker _invokeTarget:] + 33
13 com.apple.CoreFoundation 0x9551e091 -[NSObject performSelector:withObject:] + 65
14 com.apple.Foundation 0x91c1cf64 __NSThreadPerformPerform + 503
15 com.apple.CoreFoundation 0x9549584f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
16 com.apple.CoreFoundation 0x95495206 __CFRunLoopDoSources0 + 246
17 com.apple.CoreFoundation 0x954bf0d8 __CFRunLoopRun + 1112
18 com.apple.CoreFoundation 0x954be8ec CFRunLoopRunSpecific + 332
19 com.apple.CoreFoundation 0x954be798 CFRunLoopRunInMode + 120
20 com.apple.HIToolbox 0x93bcca7f RunCurrentEventLoopInMode + 318
21 com.apple.HIToolbox 0x93bd3d9b ReceiveNextEventCommon + 381
22 com.apple.HIToolbox 0x93bd3c0a BlockUntilNextEventMatchingListInMode + 88
23 com.apple.AppKit 0x97b27040 _DPSNextEvent + 678
24 com.apple.AppKit 0x97b268ab -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 113
25 com.apple.AppKit 0x97b22c22 -[NSApplication run] + 911
26 com.apple.AppKit 0x97db718a NSApplicationMain + 1054
27 com.apple.iPhoto 0x0001159a 0x1000 + 66970
28 com.apple.iPhoto 0x00010a29 0x1000 + 64041
Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x91bbc90a kevent + 10
1 libdispatch.dylib 0x9a5bbc58 _dispatch_mgr_invoke + 969
2 libdispatch.dylib 0x9a5ba6a7 _dispatch_mgr_thread + 53 -
Text Object Error in Adobe forms
Hello Friends,
I am trying to include a text object in Adobe PDF-based print form.
In the context, I have created a node for the text. I chose the Text Type as Include Text. I am able to choose the required Text Object and Text ID from the respective search helps. When trying to activate the form, I am getting an error saying that I did not specify a text name. I tried to rectify this error but could not do so.
Please help me out on how to rectify this error.
Points will be rewarded for useful answers.
Thanks,
John.Are you giving the text name in single quotes.
-
Can I embed fonts of all Dynamic Text objects in a Flash file?
Hi there!
I'm fairly new to Flash, so please bear with me.
I have created a Flash file which will act as our company's standard presentation / portfolio of all previous projects. I've pretty much got it running the way I want, but I've just tried it on a few different computers and realised that the fonts aren't embedded. I've used our corporate font so it needs to look right. Having read the following documentation (http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Liv eDocs_Parts&file=00000893.html) I now understand how to embed fonts for one dynamic text object at a time. However, I have a lot of different dynamic text objects in the file and I would dearly love to embed them all in one step! The same embedding options can be applied to just about all objects, as they're all the same size and font.
I hope someone can help me. If you are able to help please spell things out in simple steps!! I am aware that I probably haven't yet grasped a number of the basics of Flash.
Thanks in advance,
StuartStatic text doesn't need to be embeded. So I'm not sure what the problem you are having is. The page you linked to is for making an embedded font in your library that can then be exported for actionscript and used by code and style sheets. If you are following the instructions on the page you liked to you only need to do that once. Which shouldn't be too hard.
That is usually a different problem that having a bunch of different authortime created textfields that need to have characters embedded.
As far as I know your only hope to change a bunch of authortime/library items is using JSFL. So even if the thing I pointed to isn't exactly what you need you could keep googling a bit or use that as a template.
JSFL files are just text files so open it in note pad. Look for the line:
if(it[i].itemType == "movie clip")
and change it to this:
if(it[i].itemType == "movie clip" || it[i].itemType=="button")
Now it does buttons. You give up too easy. -
IPhoto has detected inconsistencies in your library.
I hope someone can help I'm out of ideas now. Everytime I open iPhoto im faced with a dialog box saying "iPhoto has detected inconsistencies in your library" "Click repair to avoid problems." This has no effect all my pictures seem to be there and all their data like location and faces. its just annoying every time i open iphoto. I've tried the Repair had no joy with that. Also tried the iphoto in built rebuild manager still aint having it.
Please Help
Many Thanks Baz1. Mak a back up. This is vital. Don't skip this step.
2.
Option 1
Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild.
If that fails:
Option 2
Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
Regards
TD -
Localization of text objects in Crystal Report RPT file
Dear all,
Does anyone know how support multiple locale text (English and French) in one single Crystal Report RPT file. Is there a way to parameterize text objects (including tiles, axis, of chart) in the Crystal Report RPT files to use some sort of locale resource file containing text string for different languages based on the users of RPT at runtime? The idea is to use one single RPT file to generate report for different locale text instead of creating RPT file per locale. For example, inserting a text object in RPT file and it has text "Welcome" in English and use the same RPT file and parameterize that text object's text with a resource file and the text of that object will retrieve the proper localized text from that resource file at runtime based on the user's locale setting.Easiest way is to place duplicate copies of charts in split sections.
If you have a chart in a group footer, split into two sections place English chart in one and french in the other.
In section expert suppress section based on language field in database. You can do same with Text box or you can over lay two text boxes one in english one in French and then format text box to suppress depending on language. Looks really messy in designer but will be fine in Preview.
Ian -
One pair of radio buttons to control multiple text objects - Designer 8.0
Greetings - a big thank you in advance for any assistance. I have often found answers to my problems on this forum, but have been unable to find an answer to the following.
The short of it - is it possible to make a pair of radio buttons control the visibility of multiple text objects with the same name(I have had success in manipulating only a single text object with one pair of buttons)?
The long of it - I am trying to make a form bilingual based on the value of a radio button group to control the visibility of the text object in the selected language. When the user selects the language they wish to see, all the text objects in the form switch to that language. I am working with a dynamic PDF.
I have succeeded to a very limited extent in manipulating one text object by overlaying text objects in both languages, setting one object to "invisible" as default, and controlling that text objects visibility with the following JavaScript in the click event of the radio button group:
----- form1.#subform[0].ENG_JPN::click: - (JavaScript, client) -------------------------------------
if (ENG_JPN.rawValue == 1)///1 equals the value of on
{English.presence = "visible";}
else
{English.presence = "invisible";}
if (ENG_JPN.rawValue == 2)///2 equals the value of on
{Japanese.presence = "visible";}
else
{Japanese.presence = "invisible";}
endif
The problem is I need to manipulate the visibility of all text objects with the same name on the form with a single radio button group. I have tried writing the code as one does for the sum of a repeating field, ie. English[*].presence etc. however I get a C++ error in preview.
Any ideas are greatly appreciated. I am truly stumped - thank you for your time.To access objects with the same name you need to deal with occurance numbers. If your object is called TextField then the 1st occurance will be TextField[0], the second occurance will be TextField[1] etc.....
The issue is that the [] in javascript are interpretted as an array element so you have to use the syntax: xfa.reolveNode("string") to get to your object names. In your case you would use:
xfa.resolveNode("TextField[1]").presence = "visible"
This string syntax allows you to use a var to hold the index number and is very useful with for loops where you want to set large numbers of objects. So if the index was held in the var i then your syntax would be:
xfa.resolveNode("TextField[" + i + "]").presence = "visible"
If the objects are in a repeating subform then the occurance numbers are on the subform and not the object. You can always get the expression to use by app.alert(objectname.somExpression). This will return the expression that you need to create.
Make sense? -
Formula for comparing string and setting text object to visable?
I have a report that is pulling data from a database and listing multiple records, one on each page. I am wanting to compare a value that is stored in a database field for each record and setting a text object visible based on the text.
I'm very new to Crystal Reports and not quite sure on the type of syntax needed to perform what I'd like below and can't find much information online about it. The type of formula I want would be something like:
if (vDetailReport.BoardAction = "Board Action w/Committee Action")
txtBox1.Visible = True;
else if (vDetailReport.BoardAction = "Board Action w/o Committee Action")
txtBox2.Visible = True;
else if (vDetailReport.BoardAction = "Committee Discussion Only")
txtBo3.Visible = True;
etc.
The txtBoxes are text objects with an "X" as the string that are inside the boxes to appear as a checkbox. I'm wanting this to work for every record in the report.
Example:
http://img.photobucket.com/albums/v57/kaje103/boardaction.png
Any help would be much appreciated!I believe that what you want to do here is place an text item consisting of an "X" at each location you want. Then select "Format Text", go to the Common Tab, and click on the button next to "Suppress". That allows you to put in a formula such as:
{vDetailReport.BoardAction} <> "Board Action w/Committee Action"
that will suppress the X unless it's the value you want checked. -
i keep getting the msg "iphoto has detected inconsistencies in your library, and after it goes thru a lengthy repair process it just quits. it has done this several times, cant get past this it just keeps doing the same thing.
Option 1
Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
If that fails:
Option 2
Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
Regards
TD -
Iphoto has detected inconsistencies with your library
i have just reloaded my osx 10.8.2 and migrated from my external hard drive... now when i open iphoto i get a message like the "iphoto has detected inconsistencies with your library" can anyone help?
1. Mak a back up. This is vital. Don't skip this step.
2.
Option 1
Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild.
If that fails:
Option 2
Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
Regards
TD -
How to create a text object at runtime?
Hi,
I am using crystal reports for visual studio 2010 and using c# to programming.
I need to create a text object in a specific section like section 2. and also I need to control the text object's position and text.
I tried to move a object like:
reportDocument1.ReportDefinition.Sections[j].ReportObjects<i>.Left = 0x8760;
but object's position doesn't change at all.
How can I do these (create a text object and change a object postion)?
ThanksHi Don,
Thank you.
I have downloaded a RAS ( report application Server ) sample.
The sample uses the Business Objects Enterprise XI release 2. I am using win 7 and crystal reports for vs2010. Can I use this version of crystal reports to create a text object at runtime? If not, what is the lowest version I have to purchase to achieve what I want?
Basicly I need following capabilities at runtime:
1) craete text objects, line objects, image objects.
2) change text object, line object and image object positions, sizes, values of text object. If can I like to be able to change font as well.
3) supress objects, sections.
4) change section's height -
How to make a text in a text object Bold at run time
I would like to make a text in a text object Bold depends on a record value. how can I control that ?
Edited by: Hagita1 on Jan 18, 2011 10:51 AM
I found the solution-Thank youYou should share your solution with the community.
-
How can I align a text object by the visible text and NOT by its bounding box?
Illustrator CS4.
I am trying to align some text to the center of the artboard. The bounding box is bigger than the text, so when I try to align it to the artboard it doesn't actually center align the artwork as I need it to. The text is needing to be aligned with another text object, so I can't just center align the text and then align to the artboard (which would eliminate the bounding box problem, I think). To make matters worse, the text I want to align has a stroke.
The only way I know to currently align the text properly is to convert it to outlines. This is what I've done, but I need something better. I want to be able to have my illustrator file that has all editable text and then be able to make a separate identical file with all text converted to outlined paths. The only thing holding me back right now is that I can't get the exact alignment while everything is still as text.The solution is to simple to believe and probably why you over looked it.
You make two text frames to exactly the height and width of the text. You position the text in the relative location and then group the text frames then center that group on the artboard.
Like such:
If you ever want to add text that should be no problem but you have to re center.
Maybe you are looking for
-
Here is the error message I get. When iTunes does install, my ipod still won't sync because it's the wrong version. I've tried doing the version it suggests and still nothing.
-
Data column in Manual planning Layout
Hi, I have a KF in data column and year as a dynamic in the data column. Year is restricted to 2006 and 2007 in the planning level. When layout is executed is displays 2 columns 2006 and 2007 other then lead cols which as expected. Now at this stage
-
Assign search help for a screen field in standard program?
Hi All, Is there any other way to assign search help to a standard SAP screen field? (to be precise i want to assign search help to Recipient field in table control of components tab in transaction IW32/IW31) I know we can do this by assigning search
-
BEx variables ignored in MDX query
I am having some issues with Crystal Reports running off a Bex query. In the Bex query I have a variable defined on characteristic posting date. However, even though I select a specific posting date when prompted, records from all posting dates are r
-
After installing and restored my iphone4 32g from 4.3.3 to 5.0.1 recently, I found it can't acess Chinese simplified keyboard while messaging. When I select CS pinyin keyboard, it will jump back to the home screen. Connection to public wifi also prob