Height of text object / database field
Hello,
is it possible to size the height of each field in the detail section to the height of the detail section via formula or setting?
Regards
It just works in the Excel export. Still overwrites the next column in the report viewer.
I've set CanGrow on False and Tight Horizontal for the field on true. KeepTogether for the following fields is on False.
Why is that so? I need the full line text hidden in my Excel sheet and want to have it fully visible after expanding the column.
Everything works fine in the Crystal Reports Windows Viewer.
Similar Messages
-
Txt formatting issues with fields in text object
Post Author: David Goldman
CA Forum: General
Hi, complete newbie here. I'm working on my company's estimating form. I was requested to combine fields FCITY FSTATE and FZIP into one line that auto flows any given data. So I used a Text object with field calls to FCITY FSTATE and FZIP. This works very well, however my text is always formated to the way it was entered into the database. ie. if some salesman enters his info with the capslock key on, it shows up in my text object that way, and not in my regular fields. The regular fields are somehow formatting the text to cap the first letter of each word. How can I configure my text object to do this? ThanksPost Author: SKodidine
CA Forum: General
Format the fields prior to placing them in the text box.
For example,
propercase({table.last_name}) & ', ' & propercase({table.first_name}) & ' ' & propercase({table.middle_name});
Then place the formula in a text box and then right click and check the box next to 'Suppress Embeded Field Blanks'. -
Can't get "true" height of text box (text object) in Photoshop CS4-CS6 on Mac
I'm seeing this behavior in CS4, CS5 and CS6 on the Mac using AppleScript. When I get the height of a text object layer as such:
tell app "Adobe Photoshop CS4"
tell current document
set textObjectHeight to height of text object of art layer 1
end tell
end tell
The value returned doesn't match the height of the text object. In my mind the text object is the box that's displayed when I click on text in a text layer with the text tool active. The value for the width appears to match, just as I'd expect.
I'm trying to get the height and width of the text box (text object) so that I can draw a box "underneath" it on another layer so that one can tell where the text box is. Kind of an FPO-type assistant. I'm currently using the position values and the height and width to create a colored box. I realized that the height isn't exactly right.
Any help would be great appreciated. I've not explored the use of Javascript thus far, but am open to that as a solution.
Thanks,
StephanI tried your code and it works just fine here… I used CS5 to try it… Here is a screen shot… I just put a solid fill layer at the bottom so you can see the guides…
Script editor's event log gives me…
tell application "Adobe Photoshop CS5"
activate
get position of text object of art layer 1 of current document
{150.0, 100.0}
get width of text object of art layer 1 of current document
800.0
get height of text object of art layer 1 of current document
449.999969482422
make at end of current document with properties {name:"fill"} new art layer
art layer 2 of document "Untitled-1"
select current document region {{150.0, 100.0}, {950.0, 100.0}, {950.0, 549.999969482422}, {150.0, 549.999969482422}} without antialiasing
current application
fill selection of current document with contents {class:RGB color, red:255, green:0, blue:0} blend mode normal opacity 100 without preserving transparency
current application
deselect current document
current application
end tell -
Can't add database field or text object to a report (new and existing)
We have Crystal Report 8.5 and when trying to modify an existing report or create a new report, I can't seem to add any database fields or text objects in my report. I get a prohibition symbol (circle with a backslash inside it) when I hover over the report. Has anyone encoutered something like this? Any suggestions? Thank you.
Do you have two monitors?
I had this problem if I tried to open crystal in the second monitor, move it back to primary monitor and it should be OK.
Ian -
Please Help: Problem - Combining database fields in a text object
Hello
Thank you for viewing my thread and any helpful feedback you may provide. I am having trouble with the "Combining database fields in a text object" tutorial in the Help under: Quick Start\Quick Start for new users\Combining database fields in a text object.
After following the steps and previewing, I see the last name, first name stacked on top of each other in preview and design view. I don't know why this is happening. Can anyone point me in the right direction so the text is displayed the same way as it is in the Help?
Thanks
MHi,
I don't think the field is actually in the text object but just stacked on top of it.
When you double-click on the text object, you the cursor should be inside it now. Is the database field in there? If not, then you can drag and drop it into the text object where you want it to go.
You will know if it's going in because the edit cursor will show you where in the text object it will drop.
The other way to do it is to drop the database field on the report somewhere and copy it to the clipboard and paste it into the text object.
Good luck,
Brian -
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 -
How can I embed a text field inside a text object in a fillable form?
I am a new user of LiveCycle and am slowly figuring things out. I don't really understand any of the scripts-- thatlevel is way beyod me. I am hoping that someone can tell me an easy way to insert a fillable text field into a text object. I have been assigned a huge project of converting some very old Word forms into fillable PDF forms. I have done okay with many of them, but ran into a snag with some of the form letters that our employees need to fill out. Basically, there is a block of text (the body of the letter) in which employees will need to be able to type in a date that the recipient of the letter must respond by. I have read up on floating fields and thought that was the solution to my problem, but it seems that floating fields are really just meant to be filled from a data source rather than having info typed into them.
Can anyone help-- I am desperate at this point. There has to be an easy way to insert a fillable text field object or a Date/Time object into a block of text so that the surrounding text will expand and contract around the length of the date entered (this is important, as many of these letters pertain to legal matters and cannot have blank spaces in them).Hi,
You can split your text object into different parts and place text fields inbetween the parts. With a little manuvering, you can make it look good.
An alternative is to place text field(s) outside the letter body (and set the visibilaty to screen only). Use these to populate the floating field.
or
script the external text fields (or the subform containing them) to be "hidden" using the "Preprint" event, then revealing them ("visible") again using the "Postprint" event.
Hope this helps, good luck!
Stephen -
Mapping an object's property to a field computed from 2 database fields
Hi,
Is there a way to do a WorkBench mapping of a business object's property to a field computed from 2 separate database fields?
If not in WB, how would you do that?
Thanks,
MichalYou could define this mapping through a TransformationMapping using you own code in the mappings transformer to divide the values. However you are probably much better off to just map the two values directly, and add a method in your object model to get the rate buy dividing the values.
If terms of being able to order-by the calculated value in the a TopLink query, mapping the calculated value using a transformation mapping would not help this.
To do this order by you can use,
query.addOrdering(ExpressionMath.multiply(ExpressionMath.divide(builder.get("numberOfSuccess"), builder.get("numberOfAttempts")), 100); -
Floating Text Objects Bound to Fields
Hello!
I have several floating text objects bound to corresponding fields (text and numeric) and they work fine... expect when I hide the fields and then the bound text in the floating text objects also disappears.
Did I miss a step?
Thank you!
NicolleI'm attempting to do something similar with floating fields in a form letter. I have set up my form naming the text and floating fields the same, and set the binding to Global. When I enter text in the "Company_Name" field, which has the java script "xfa.layout.relayout();"in the Exit action, the Company_Name value does not appear where I placed the "Company_Name" floating field in the text block on the same screen. If I un-hide the floating field, the value is displayed in a text field at the top left corner of the page.
Here's the link to the form: Dropbox - Non-Disclosure and Non-Compete Agreement - LC Original.pdf
Any ideas on how I can get this to work properly? I have a bunch of similar forms that I have to do.
These screen shots are for the floating field used in the text box.
Any help would be appreciated!
Thanks,
Dean -
Auto-expand height of text fields
Is there a way to make a text field autimatically expand its height rather than having a scroll down option?
No, the Multi-line text fields can be made larger in the authoring UI so they will accomodate more text but they will not automatically expand. Also when filling out the HTML form the multi-line text box input field can be made larger by the user dragging the bottom right corner, but again it does not happen automatically.
Thanks,
Josh -
Conversion of Char database fields to Date Object view attributes
Hello,
I would like to transform all date values of data type CHAR(10) in an oracle database (formatted like this : "YYYY/MM/DD") to oracle.jbo.domain.Date fields.
For the moment the better idea I have found is :
- add transcient entity attributes (type oracle.jbo.domain.Date) for each persistent attributes (type oracle.jbo.domain.Char) representig a date field in each Entity object of my application.
- in the java code of the Getter and Setter method of those transcient attributes, I call a method which transform a value of type "oracle.jbo.domain.Char" to a
"oracle.jbo.domain.Date" (for the Getter), and an other method which transform a value of type "oracle.jbo.domain.Date" to a
"oracle.jbo.domain.Char" (for the Setter)
The aim of these transformations is to retrieve those transient attributes of oracle.jbo.domain.Date type in my web application in order to easily associate them to adf "input date" components : what I have undersand is that this "input date"component is waiting for a "Date" type in input to work properly.
But I find that it is a lot of work to do. I have maybe 100 database fields concerned by those conversions.
Does it exist something in the Adf framework between the database and the "adf entity objects", or between the "adf entity objects" and the "adf view objects", where I can declare to make these transformation for all my database pseudo date fields : something like a class-converter in the adf web framework where I can say, for example, to execute some methods in order to transforms the concerned data in two directions : "Char to Date" and "Date to Char".
Thanks for your help.Hello,
I would like to transform all date values of data type CHAR(10) in an oracle database (formatted like this : "YYYY/MM/DD") to oracle.jbo.domain.Date fields.
For the moment the better idea I have found is :
- add transcient entity attributes (type oracle.jbo.domain.Date) for each persistent attributes (type oracle.jbo.domain.Char) representig a date field in each Entity object of my application.
- in the java code of the Getter and Setter method of those transcient attributes, I call a method which transform a value of type "oracle.jbo.domain.Char" to a
"oracle.jbo.domain.Date" (for the Getter), and an other method which transform a value of type "oracle.jbo.domain.Date" to a
"oracle.jbo.domain.Char" (for the Setter)
The aim of these transformations is to retrieve those transient attributes of oracle.jbo.domain.Date type in my web application in order to easily associate them to adf "input date" components : what I have undersand is that this "input date"component is waiting for a "Date" type in input to work properly.
But I find that it is a lot of work to do. I have maybe 100 database fields concerned by those conversions.
Does it exist something in the Adf framework between the database and the "adf entity objects", or between the "adf entity objects" and the "adf view objects", where I can declare to make these transformation for all my database pseudo date fields : something like a class-converter in the adf web framework where I can say, for example, to execute some methods in order to transforms the concerned data in two directions : "Char to Date" and "Date to Char".
Thanks for your help. -
RE: What's database field are used in crystal report file?
Hi all
Please help me a C# code that using Crystall Report API (Crystal Report XI- Develop license) to get the list of database fieldname that using in crystal Report file. (What's database field using in header section ,group section , detail section of report.....)
We looking forward to hearing from you
Thanks
SonHello Son,
please use this code below to get a list of used database fields in a report :
//File Name: CS_Get_report_data_out_inproc.sln
//Created: April 11, 2008
//Author ID: FLI
//Purpose: This C# .NET sample Windows application demonstrates
// how to retrieve report data and put the into a XML file
// using unmanaged RAS.
// Note this is available without a dedicated RAS with SP2 for XI R2
using System;
using System.IO;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.ReportAppServer.ClientDoc;
using CrystalDecisions.ReportAppServer.Controllers;
using CrystalDecisions.ReportAppServer.DataDefModel;
namespace CS_Get_report_data_out_inproc
public partial class Form1 : Form
// CR Declarations
ReportDocument boReportDocument;
ISCDReportClientDocument boReportClientDocument;
public Form1()
InitializeComponent();
//Create a new ReportDocument
boReportDocument = new ReportDocument();
// load the RPT file
boReportDocument.Load("..
ReportData.rpt");
// show in reportviewer
crystalReportViewer1.ReportSource = boReportDocument;
private void button1_Click(object sender, EventArgs e)
//Access the ReportClientDocument in the ReportDocument (EROM bridge)
boReportClientDocument = boReportDocument.ReportClientDocument;
// Retrieve the Rowset Controller
RowsetController boRowsetController = boReportClientDocument.RowsetController;
// Retrieve the metadata (column headers) - this allows you to only retrieve the data that is on the report.
RowsetMetaData boRowsetMetaData = new RowsetMetaData();
Fields boFields = boReportClientDocument.DataDefinition.ResultFields;
boRowsetMetaData.DataFields = boFields;
// Now print out the data in XML file
//(Note: This will print out the results of formulas too)
StreamWriter sw = new StreamWriter("C:
ReportData.xml", false);
sw.WriteLine("<?xml version='1.0' encoding='utf-8'?>");
sw.WriteLine("<ReportData>");
sw.WriteLine("<Reportheader>");
// Print out the titles
for (int i = 0; i < boFields.Count; i++)
String boFieldName = boFields<i>.Name;
sw.WriteLine("<ReportheaderDetail>" + boFieldName + "</ReportheaderDetail>");
sw.WriteLine("</Reportheader>");
//Create the cursor which lets us loop through the data
RowsetCursor boRowsetCursor = boRowsetController.CreateCursor(null, boRowsetMetaData, 1);
Record boRecord;
while (boRowsetCursor.IsEOF == false)
sw.WriteLine("<Customer>");
boRecord = boRowsetCursor.CurrentRecord;
for (int j = 0; j < boFields.Count; j++)
try
sw.WriteLine("<Detail>" + (String)boRecord[j].ToString() + "</Detail>");
catch (Exception err)
sw.WriteLine("<Error>" + err.Message + "</Error>");
sw.WriteLine("</Customer>");
boRowsetCursor.MoveNext();
sw.WriteLine("</ReportData>");
// CLose the file
sw.Close();
MessageBox.Show("XML File 'ReportData.xml' successfully created on C:"); -
Re: using create_text and read_text should save text in database table
Hi,
what are the parameters i need to pass for create_text and read_text in dialog programming, i have a 4 i/o fields where in each i need to enter 30 email ids , after entering email ids i need to save to the database, what is the logic
fields: SNO---serial number
mail1------> need to enter less than r more than 30 email address
mail2----> need to enter less than r more than 30 email address
mail3-----> need to enter less than or more than 30 email address
when i click create insert into database and from database it should b displayed on the table control. How to do using create_text ( using text objects function modules)If you are updating a custom Z Table, then look at redesigning it:
Fields:
<b>Client</b>
<b>SNO</b>
<b>MAIL ID ( 1, 2, 3)</b> etc
<b>COUNTER</b> (001 to 999)
These fields make up the key.
Email Address
This way you can store many email addresses.
It is not a good idea to store data in a free form text field. -
Post Author: ftpaxa
CA Forum: Other
I use a SQL server DataBase on Windows server 2003 with service pack 2. i use Crystal Report 10 with ODBC connection. I read that the nice DLL is "Crdb_odbc.dll".I saw a VB code "How to format a text object" on this site :http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=crxiTechrefenpdf&sliceId=&dialogID=7686352&stateId=1%200%207680692--' Create a new instance of the report.Dim oReport As New CrystalReport1Private Sub Form_Load()' Declare a TextObject object.Dim oTextObject As CRAXDRT.TextObject' Declare a generic Object.Dim oObject As Object' Declare a Section object.Dim oSection As CRAXDRT.Section' This variable is set to true once the' text object is found.Dim bText As BooleanbText = False' Search for all the report objects in each section.For Each oSection In oReport.SectionsFor Each oObject In oSection.ReportObjects' Find the first text object.If oObject.Kind = crTextObject Then' Get the text object and exit the loop.Set oTextObject = oObjectbText = TrueExit ForEnd IfNext oObjectIf bText Then Exit ForNext oSection' Format the text object and change the text.With oTextObject.BackColor = vbYellow.BorderColor = vbRed.BottomLineStyle = crLSDoubleLine.CanGrow = True.CharacterSpacing = 125.CloseAtPageBreak = True.FirstLineIndent = 25.Font.Italic = True.Font.Bold = True.Font.Size = 14.HasDropShadow = True.Height = 900.HorAlignment = crLeftAlign.KeepTogether = True.Left = 200.LeftIndent = 750.LeftLineStyle = crLSDashLine.MaxNumberOfLines = 16.RightIndent = 250.RightLineStyle = crLSDotLine.Suppress = False.SuppressIfDuplicated = True.SetText "Hello World".TextColor = vbBlue.TextRotationAngle = crRotate0.Top = 25.TopLineStyle = crLSSingleLine.Width = 3000End With' Set the report source of the viewer and view the report.CRViewer1.ReportSource = oReportCRViewer1.ViewReportEnd SubSo, i would like to do the same thingswith winbatch language. I tried this code :;Get CrystalRuntime Application Object HandleobjCra = ObjectCreate("CrystalRuntime.Application");Logs on to on or more SQL servers or ODBC data sources.objCra.LogOnServer("Crdb_odbc.dll","Magic","xxx","xx","zzzz") ; ("DLL file", "Server", "dbname", "username", "password"); open the saved reportobjReport = objCra.OpenReport("C:\Download\Perso\Programmation\Winbatch\Crystal Report\Final\rapport exploitation - abend.rpt")objReport.DiscardSavedData()TxtObj = objReport.Sections("PHb").ReportObjects("Text11")txtObj.Text = "testing" ; *** Error on this line : 1266: Ole:Bad Param Count;Export htmlPathHTML = strcat("C:\Download\Perso\Programmation\Winbatch\Crystal Report\Final\Resultat\rapport exploitation - abend.htm")hfile = PathHTMLcre = crr.ExportOptionscre.DestinationType = 1 ; diskfilecre.FormatType = 32 ; 24 = (HTML 3.2 standard), 31 = (PDF), 32 = (HTML4.0) cre.HTMLFileName = hfilecrr.Export(BOOL:@false)objectclose(cre)objectclose(objReport)objectclose(objCra)exit--
Everythings work good except this linetxtObj.Text = "testing" I receive this error :1266: Ole:Bad Param CountI may be don't have the nice recipe. If you have a solution, it is welcome.Post Author: KAM
CA Forum: Other
Try using SetText. Thanks. -
1000 CHARACTER TEXT IN ALV FIELD
Hi Experts,
I have a String type variable containing 1000 character text that I am passing in a field on ALV. But ALV field can display on 132 characters. So now my requirement is that when a user double clicks on that field... then a popup or a screen appears where the user can read the entire text of that field.
I have tried some FMs (like POPUP_TO_CONFIRM, POPUP_TO_INFORM, POPUP_DISPLAY_TEXT etc...), but all have length restriction.
Please suggest if there is any FM to get the entire 1000 character text on a popup.... OR if there is any other way to do this...
Thanks in advance
Regards,
Ashish GoyalI am using this code provided by you, facing error : Field "OB_GUI_DIALOGBOX_CONTAINER" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.
Please take a look and suggest.
Using REUSE ALV GRID to display ALV.
TYPES: BEGIN OF tp_text_x .
TYPES: tdname TYPE thead-tdname ,
tdobject TYPE thead-tdobject ,
tdid TYPE thead-tdid ,
tdspras TYPE thead-tdspras ,
tdtxtlines TYPE thead-tdtxtlines .
TYPES: tdline TYPE tline-tdline ,
it_tline TYPE tline_tab .
TYPES: END OF tp_text_x .
CLASS cl_event_reciever DEFINITION DEFERRED.
DATA v_event_reciever TYPE REF TO cl_event_reciever.
CLASS cl_event_receiver DEFINITION .
PRIVATE SECTION.
METHODS: close
FOR EVENT close OF cl_gui_dialogbox_container
IMPORTING sender.
METHODS: init_container .
METHODS: display_textedit
IMPORTING value(st_text_x) TYPE tp_text_x .
ENDCLASS . "cl_event_receiver DEFINITION
CLASS cl_event_receiver IMPLEMENTATION.
METHOD close .
CALL METHOD sender->set_visible
EXPORTING
visible = abap_false.
ENDMETHOD . "handle_close
METHOD init_container .
* DATA: ob_gui_dialogbox_container TYPE REF TO cl_gui_dialogbox_container.
IF ob_gui_dialogbox_container IS NOT INITIAL .
* IF EDITOR_CONTAINER IS NOT INITIAL .
me->close( EXPORTING sender = ob_gui_dialogbox_container ) . " EDITOR_CONTAINER ).
ENDIF .
CREATE OBJECT ob_gui_dialogbox_container
EXPORTING
parent = cl_gui_container=>screen0
top = 40
left = 200
lifetime = cntl_lifetime_dynpro
width = 600
height = 100.
ENDMETHOD. "init_container
METHOD display_textedit .
me->init_container( ) .
DATA: ob_gui_textedit TYPE REF TO cl_gui_textedit .
* DATA: ob_gui_dialogbox_container TYPE REF TO cl_gui_dialogbox_container.
CREATE OBJECT ob_gui_textedit
EXPORTING
parent = ob_gui_dialogbox_container.
CALL METHOD ob_gui_textedit->set_readonly_mode
EXPORTING
readonly_mode = cl_gui_textedit=>true.
DATA: it_tdline TYPE TABLE OF tdline .
DATA: st_tdline LIKE LINE OF it_tdline .
FIELD-SYMBOLS: <st_tline> LIKE LINE OF st_text_x-it_tline .
LOOP AT st_text_x-it_tline ASSIGNING <st_tline> .
APPEND <st_tline>-tdline TO it_tdline .
ENDLOOP .
CALL METHOD ob_gui_textedit->set_text_as_stream
EXPORTING
text = it_tdline.
ENDMETHOD. "display_textedit
ENDCLASS . "cl_event_receiver IMPLEMENTATION
INITIALIZATION.
CREATE OBJECT v_event_reciever.
DATA: ob_gui_dialogbox_container TYPE REF TO cl_gui_dialogbox_container.
CREATE OBJECT ob_gui_dialogbox_container.
START-OF-SELECTION.
v_event_reciever->display_textedit( EXPORTING st_text_x = <st_alv_data_1>-text_1 ) .
Maybe you are looking for
-
Hello, Running FCP 5.1 Having audio sync issues and was double checking my settings. Although the sequence presets are at 16 bit, they are showing up in the browser as 32bit Floating Point. Any thoughts? I generally capture now at 30 minute increment
-
I know Apple says you can rent HD movies with dolby 5.1 surround, but my questions is how do you know you are renting a HD rental as apposed to standard resolution. And can you get the 5.1 to playback using a mac not an apple tv. On the store it show
-
Hi All iam new to SAP HR functional . kindly provide me with the documentation ir any study material. thanks jyothi.R
-
Finder does not see my Western Digital Hard drive?
I have been using a Western digital to back my macbook, but since upgrading to OS X 9 maverick it is no longer visible in the finder window? I've used the Western digital utility and the drive passes all tests and it sees it? updated the driver view
-
Photoshop Multi Paths on different layers in Indesign
Mac OSX Indesign & Photoshop CS4 Might be a dumb question but... Is there a way of using a single placed photoshop file in indesign so that the paths can be moved to different layers. Or do you have to duplicate the image onto the different layers an