I have created a Label datawindow (all fields aligned to center). The field value(length = 80) is having no spaces in between. So while generating a label report from powerbuilder application the field is cutting left and right side.
In case the field has spaces in between, in the report it will go to next line.
Im using Powerbuilder 2017 R3.
If any advice it would be grateful
Thanks in advance
You need to expand the display area of the columns to handle the max width. If this isn't an option then you will have to programmatically break up the strings which have no spaces since PB doesn't know when to wrap since there are no breaks in the text.
I start with a working example:
Open PowerPoint with a blank presentation.
Right-click the title slide and choose "Layout - Title and Content".
You see "• Click to add text"? Click and add some text.
Right-click the slide again and choose "Layout - Two Content".
See how smart PowerPoint can be?
The text you entered in the single placeholder before is now in one the of two placeholders.
Specifically, the left one.
My questions:
Why? (And not in an extra one?)
Why? (And not in the right one?)
My questions arises because I have received a set of master slides in which the above is not working, and I am trying to repair it without having to regenerate everything.
This is a site for programming issues, but the background behind this issue might be sufficiently complex. Modern PowerPoint files are XML. In the XML for each slide layout, each placeholder has an idx reference number. PowerPoint uses these on numbers to decide where to place content.
Lazy Designer Syndrome is the cause of what you're seeing. Instead of creating new placeholders in order, so the idx numbers would increment in a logical order, the designer has copied and pasted placeholders to avoid extra formatting work. The pasted placeholders all have the same idx number. As a result, PowerPoint has no idea of placeholder order and inserts content randomly.
This isn't always easy to solve without editing the XML, but you can try deleting all but the leftmost placeholder. Then create new placeholders by inserting them one at a time and reformatting them manually to match the first.
At first my attempts to follow the above failed, but now I got it working as well.
There are two different, but similar tags, id="" and idx="".
All objects in the slide has an id="" tag, this is not the tag to solve this problem.
The idx="" tag is only on Placeholder objects, except the those of Type=Title.
As described above you can set it to an integer value 1 and greater (I assume).
Make a plan for what Placeholder objects should be replaced across your layouts. I think of these as "groups" or "families", then assign the idx-values consistently throughout your slide layouts.
These "groups" or "families" of placeholders needs to be compatible for this to work, i.e. matching Type. The absence of Type means the placeholder is a general Content Type and match all Types.
During layout change, if Placeholders has incompatible Type while having the same idx-tag, PPT will look for the next Placeholder with matching Type.
#JohnKorchok's accepted answer provides the technical details for the procedure described here. Note that I only had "Content Placeholders" in my presentation.
Install 7-Zip and your favorite text editor (you can use one with an XML formatter, which will simplify things, but it's not required).
Open your file.pptx in 7-Zip (no need to rename to .zip, just right-click and "Open Archive")
Navigate to ppt/slideLayouts.
See a list of slideLayout....xml files.
Identify the ones you want to edit, e.g., by opening each one and looking for <p:cSld name. (The numbers may be indicative only of the order the layouts have been created, not of the order in which they are now shown in PowerPoint - although saving a .pptx files in PowerPoint 2016 does modify the slide layouts for me so that the display order matches the file name numbers.)
Look for <p:ph until you find the ones you want to edit. You probably want to ignore the ones with type="title", type="ftr", type="sldNum".
Change the idx of all other placeholders to 1, 2, ... in the order in which you want them filled (use the <p:cNvPr ... name= to identify the placeholders).
Save the .xml files, close your editor, and be asked by 7-Zip to update the archive. Answer "Yes".
So I set the idx to 1 for the one placeholder in my 1-content layout, to 1 for the left placeholder in my 2-content layout, and to 2 for the right placeholder in my 2-content layout.
I have a random cell on the bottom row (Total row). I had to add a column to the report in order to sort it. I think the random blank cell is from that... any idea how I can remove it?
apparently I can't post an image until I get 10 reputation. It let me load them and then it tells me this?
r-click cell in design mode. textbox properties. hide.
Crystal Reports for Visual Studio 2010 V 13.0.4 SP4
VS 2010 Profesional SP1
This is my first time working with CR. I have a report that may have two optional lines in a section. To supress the blank lines I saw in help and all over the Internet that you follow these steps.
Right click the field of interest and select Format object.
On the common tab check the box next to Suppress Embedded Field Blank Lines.
Seems easy, but I don't have that as an option.
I see Supress and Suppress If Duplicated. There looks to be enough space below the second to hold my desired option. I've tried other fields and other reports still MIA.
Oddly enough I found no other posts anywhere with this issue.
I too came across this problem and discovered this workaround (Using CR XI R2)
1) Right click the section on which you have blank fields to suppress and click "Section Expert"
2) Check "Suppress (No Drill-Down)" and click on the Small Icon next to it to open the Formula Editor.
3) Type the following code
if {Condition resulting in a blank record} then true else false
4) Click "Save and Close" and Click OK.
I am using Table View Control. In the control, I show File/Folders details, if I reduce the size of file/folder name column, it does not show partial file/folder name (whatever characters can be shown in the Column).
If a file name has multiple words in it, if enough space is not there to show a word then that word does not get shown at all, instead of showing some characters in that word (Either a word gets shown completely, or not at all)
I want to know how to resolve this issue.
Thanks so much.
Set the line break mode of the column's text cell, using either the Attributes inspector in IB or a setLineBreakMode: message to the cell.