at odoo 15 debug mode
at #report = report_productlabel_dymo
i had adjust the paper size to 39mm width 26mm high for xprinter 235B
i get a print label and blank label it looks that something blank to print !!!
i need to remove the blank label what to change.
#report_productlabel_dymo
#report_simple_label_dymo
<!-- `quiet=0` to remove the left and right margins on the barcode -->
<!--
<strong>
<strong>
-->
i expect one label contain everything no additional blank label.
Related
I have a roll of labels that are 5,1cm x 1,6cm (two per row) and I need to print two different labels on each row (expected result), but the print command of the ZPL format only prints one label and feeds the next, leaving the adjacent label blank.
This is the ZPL code that I have:
^XA
~TA000
~JSN
^LT0
^MNW
^MTT
^PON
^PMN
^LH0,0
^JMA
^PR8,8
~SD15
^JUS
^LRN
^CI27
^PA0,1,1,0
^XZ
^XA
^MMT
^PW871
^LL152
^LS0
^BY2,3,60^FT23,73^B3N,N,,N,N
^FDId_bono^FS
^FT90,120^A0N,47,46^FB220,1,12,C^FH\^CI28^FDId_bono^FS^CI27
^PQ1,,,Y
^XZ
I believe that I need to add in this label a shift to print side by side label-1 and label-2 and print two at I time, but I cannot figure out how to add a side-shift in the label.
You have to print both labels as a single format, using ^LH to shift the second label to the right the appropriate number of dots. Basically, something like:
^XA
^LH0,0
... left label here ...
^LHnnn,0
... right label here ...
^LH0,0
^XZ
The first and third ^LH commands reset the home position. The second ^LH shifts it to the right nnn dots.
By default CKEditor assumes that text should be left aligned. If you enable text-align buttons, and select text and align it left, it doesn't change the content at all e.g.
Some text >> Some text
Whereas selecting center or right alignment adds the appropriate inline styles e.g.
Some text >> <div style="text-align:center">Some text</div>
The assumption that text is left-aligned by default is not always correct. For example the editor's output may be inside a table cell with align="center". In this case the text will never be left-align-able.
Is there anyway to set the default alignment of text in the CKEditor config prior to instantiating the editor?
You can set the default alignment by changing the contents.css file.
body { text-align: center; }
Alignment buttons on the toolbar automatically recognize the style and toggle the correct button.
Use this code: config.contentsLangDirection = 'ltr'; for Left To Right alignment and config.contentsLangDirection = 'rtl'; for Right To Left:
CKEDITOR.editorConfig = function (config) {
...
// Default language direction
config.contentsLangDirection = 'rtl';
...
};
I've got a Xamarin Forms cross-platform application (iOS and Android), and on one of the screens I want a list with details:
Heading 1
Detail 1
Detail 2
Detail 3
Heading 2
Detail 1
Heading 3
Detail 1
Detail 2
As you can see, the amount of detail under each heading is variable.
I want the page to display at first with just the headings:
Heading 1
Heading 2
Heading 3
And then when the user presses on a heading, the details for that particular heading appear. Pretty standard stuff.
I've tried several different ways to get this to work, the only path that seems open to me is to have a StackLayout where I define a bunch of labels:
new StackLayout
{
Orientation = StackOrientation.Vertical,
Children =
{
new Label { Text = "Heading 1" },
new Label { Text = " Detail 1\n Detail 2\n Detail 3", IsVisible = false },
new Label { Text = "Heading 2" },
new Label { Text = " Detail 1", IsVisible = false },
new Label { Text = "Heading 3" },
new Label { Text = " Detail 1\n Detail 2", IsVisible = false }
}
}
I then add a TapGestureRecognizer to the heading labels, and when tapped I toggle the value of IsVisible for the detail labels. It works!
The only thing I don't like, is that there is no transition. I click on the heading label and BAM the detail label appears (correctly pushing down all the following labels to make space for itself). I would like an animation so that when I click on the header, the space beneath the header "slowly" opens up to reveal the detail.
As I read about animations online, one possibility is to set the HeightRequest of the detail labels to zero (instead of hiding them with IsVisible=false) and then creating an animation that "slowly" changes the HeightRequest from zero to the actual height of the label. And that's where I run into a problem.
I can't figure out how to get Xamarin to tell me the height of my "details" label.
If I inspect the Height and HeightRequest properties of my details label right after creating it, they are both -1 (no big surprise there). If I inspect those same two properties when I click on the heading, they are still -1. The only way I've found to get the height of my detail label, is to set the detail label visible, call ForceLayout() on my stack layout, store the detail label height, and then set the detail label invisible again. The problem with that is that I sometimes see the detail label flash visible for an instant while I do this.
What's the best/recommended way to accomplish my desired UI?
You can use the Animation API.
Read the blog about it - Creating Animations with Xamarin.Forms.
In particular for your scenario you can use the FadeTo method to animate the Opacity property of a Visual Element.
Eg :
await image.FadeTo (1, 4000);
For more information, see Animation.
In your case my suggested approach would be for showing a label, to set opacity of label to 0, then make it visible, and then use FadeTo to make the opacity to 1.
Use the opposite to hide the label, set opacity 0 via FadeTo, then set IsVisible to false.
If I understand right your problem the only thing you need is to avoid the flash on the label, if this is the case then you can set the Opacity to 0, in this way the label will not be visible until you set again the opacity to 1.
I can suggest you to make a custom XF control (to use as item DataTemplate) as follow:
2 vertical parts:
The header part (A) (when you click on it it will show the second part)
The second part is a 'Listview' control (B) that is empty at the beginning
When you click on (A):
it will show (B)
It will start to populate (B) with your details elements
The trick in my mind is to implement a method that populate the listview (B) item by item (getting them from your viewmodel) with some delay (a few milliseconds) between each insertion and maybe a 'fadeTo' effect too in the same time.
You can see here what I mean (see the "Fade" section):
Insert / fade list item effect sample in HTML
You can improve your template as you want, by embedding the two parts into a 'border' for instance, to make a graphical separation...
Tell me if it's unclear, all you need is time :)
And maybe if you are ready, you can try to make native controls / animations...
How to increase the font size of only the axisLabels and not tick labels.
As you can see the axislabel font size is too small. if i give styling to text, all the text in chart is changed. I just want to change axislabel i.e Priority and Number of Alerts in this case to change. Is there a way to access only axisLabels?
This example : http://jsfiddle.net/thatOneGuy/juY5E/336/
I have appended a button that when clicked changes the font colour and the font size.
First off, when creating the text, I give it an ID (line 116) :
svg.append("text")
.attr('id','xAxisText')
Then I created a function that gets called when you click the button :
function changeFontColour(){
d3.select('#xAxisText').style('fill','red').style('font-size', 30)
}
This selects the text, then fills it red, then changes the font size to 30 :)
I want to setup jqgrig's cell (td) height to, say 32px, but with following limitations:
cell's text can be multiline;
cell should not contain any other elements, such div;
result i expect must be something like this:
Have any ideas?
Thanx.