Seam PDF - Aligning "p:data" keys to the left - pdf

I have the following code to generate a pdf from data:
<p:barchart is3D="true" legend="false" orientation="horizontal" width="520">
<p:series key="Gráfico">
<ui:repeat var="ocr" value="#{myBean.value}" >
<p:data key="#{ocr[0]}" value="#{ocr[1]}" />
</ui:repeat>
</p:series>
</p:barchart>
The problem is that the key from p:data gets aligned to the right (for some odd reason). I tried placing the code between divs with text-align, but it didn't worked.
I want the alignment to be on the left.
If someone has an answer, or at least an idea for me to try, I'd really appreciate.
Thanks in advance.

Is the value you're assigning an int or other numeric value? Trying casting it to a String instead.

Related

PrimeVue: Table Column Alignment is not consistent

I'm trying to get all the columns and their headers to align:
But everything seems to have a mind of its own and I get this:
The code I am using is pretty simple:
<DataTable
:value="someValue"
responsiveLayout="scroll"
:scrollable="true"
scrollDirection="both"
class="p-datatable-lg"
scrollHeight="500px"
>
<Column field="field1" header="Service"/>
</DataTable>
I've tried a host of things, namely setting the width of a column like so:
style="min-width:200px"
The current solution is to simple remove scrollDirection="both" which results in this:
We want to prevent that word wrapping because it is hard to read.
But that also results in misaligned columns. Has anyone faced this issue and how did you resolve it?
Thank you!

How to set number of columns per page in rml

Please, I need to know how to set the number of columns per page in RML which I used to create reports for my Openerp session.
I have tried this but it does not work at all.
so I need your help please who can help me know.
<condPageBreak height="5cm"/>
either this:
<frame id="first" x1="57.0" y1="57.0" width="481" height="728"/>
Thanks a lot in advance.

Reporting Services Error?

When running a report in preview I get the following error The definition of the report is invalid , the tablix 'Tablix11' contains an invalid TablixMember. The sort Expressions element is not allowed if Group is omitted.
I have never come across this error before and cant understand what is causing it.
The error can be replicated by creating a simple Tablix and looking at the underlying XML.
When you create a Tablix with a group, the underlying RDL XML will include something like this:
<TablixRowHierarchy>
<TablixMembers>
<TablixMember />
<TablixMember>
<Group Name="Group1">
<GroupExpressions>
<GroupExpression>=Fields!val.Value</GroupExpression>
</GroupExpressions>
</Group>
<SortExpressions>
<SortExpression>
<Value>=Fields!val.Value</Value>
</SortExpression>
</SortExpressions>
<TablixMembers>
<TablixMember>
<Group Name="Details3" />
</TablixMember>
</TablixMembers>
</TablixMember>
</TablixMembers>
</TablixRowHierarchy>
If you remove the entire Group element, this will give the same error you're seeing:
If you also remove the SortExpressions element this will allow the report to render without error.
However - it's impossible for me to say how your RDL file got in this state in the first place. Given that hacking XML to get things running is seldom a good idea, my recommendation would be to start the tablix from scratch instead of hacking things to a working state - you might just be introducing more problems.
But at least hopefully now you can see why the error might be occurring.
I found that the Tablix header had a textbox property containing interactive sort. This text box is in the header, and not part of the detail. When I deleted the field from the detail of the tablix, the interactive sort remained on the textbox in the header.
Changing it on the header by right clicking on the header textbox of the tablix, then selecting textbox properties, then selecting "interactive sorting", and then correcting the "sort by" value to the correct field name did the trick.

XAML for floating window in AvalonDock

Can someone provide me with an AvalonDock XAML code piece that when run opens the app with a floating window instead of being always docked inside the dock pane? I've seen programmatic ways to do it, but I thought there must be a way to specify it in XAML. Thanks...
I know this is a bit late, but hopefully it will help someone with the same issue in the future...
To create a floating document, add a LayoutDocumentFloatingWindow as a child of LayoutDocumentFloatingWindow, and then add your LayoutDocument as a child of the LayoutDocumentFloatingWindow, as below:
<xcad:DockingManager>
<xcad:LayoutRoot>
<xcad:LayoutRoot.FloatingWindows>
<xcad:LayoutDocumentFloatingWindow>
<xcad:LayoutDocument Title="My Document">
<!--Add document content here-->
</xcad:LayoutDocument>
</xcad:LayoutDocumentFloatingWindow>
</xcad:LayoutRoot.FloatingWindows>
</xcad:LayoutRoot>
</xcad:DockingManager>
Similarly you can add anchorables like so:
<xcad:DockingManager>
<xcad:LayoutRoot>
<xcad:LayoutRoot.FloatingWindows>
<xcad:LayoutAnchorableFloatingWindow>
<xcad:LayoutAnchorablePaneGroup>
<xcad:LayoutAnchorablePane>
<xcad:LayoutAnchorable Title="My anchorable">
<!--Add anchorable content here-->
</xcad:LayoutAnchorable>
</xcad:LayoutAnchorablePane>
</xcad:LayoutAnchorablePaneGroup>
</xcad:LayoutAnchorableFloatingWindow>
</xcad:LayoutRoot.FloatingWindows>
</xcad:LayoutRoot>
Note that unlike LayoutDocuments, for anchorables you need to add a group pane rather than just a single LayoutAnchorable, because floating anchorables are designed to be able to be grouped in a single window but LayoutDocuments are not.
As a more general guide, an example of how to set up varioius layout elements in a DockingManager can be found here: https://xceed.com/wp-content/documentation/xceed-toolkit-plus-for-wpf/AvalonDock.html

the best method for google indexing text content in images?

I have a webpage where I put 1 image once in a while, this is just like xkcd.com
I would like to know how to let google know the text in my images.
My approach is to put the text in alt html attribute, like this:
<img
src="http://myapokalips.com/public/cartoons/021_Robot_Tattoo.png"
alt="RETARD - aw, that's a sick tattoo! - yea, bro, it means 'strength'"
/>
is that right? or should I put the text in some random metatag?
thank you in advance.
Just do it like xkcd.com is doing.