小编Hem*_*bra的帖子

OpenERP font-family:条形码中的"Free 3 of 9"在报告webkit中不起作用

我的WebKit报告.mako文件有问题.我用的时候:

<html>
    <head>
        <style type="text/css">${css}</style>  
    </head>
    <body>
        % for o in objects:
            <p style="font-family:'Free 3 of 9';">${o.name}</p>
        % endfor
    </body>
</html>
Run Code Online (Sandbox Code Playgroud)

.mako文件中,它正在工作,但如果我使用

<html>
    <head>
        <style type="text/css">${css}</style>   
    </head>
    <body>
        % for o in objects:
            <p class="barcode39">${o.name}</p>
        % endfor
    </body>
</html>
Run Code Online (Sandbox Code Playgroud)

此类data.xml在report_webkit的字段"css" 中声明

.barcode39 {
    font-family: 'Free 3 of 9';
    font-size: 36;
    color: red;
}
Run Code Online (Sandbox Code Playgroud)

font-family: 'Free 3 of 9'不起作用.如果我使用另一个font-family它正在工作.可能是什么问题呢?

我已将字体放入/usr/share/fonts/truetype并运行fc-cache -fv.提前致谢.

css webkit mako openerp

16
推荐指数
1
解决办法
1782
查看次数

在Android中实现水平日期选择器

我需要实现一个水平日期选择器,如下图所示:

请点击这里查看图片

我已经尝试了很多图书馆并且用谷歌搜索了三天.

我自定义了此库但无法设置所选项目的样式.即不同的颜色和大小.

请告诉我,如果有任何建议或示例代码可以帮助我实现类似的要求.

android datepicker horizontal-scrolling

8
推荐指数
1
解决办法
4267
查看次数

外部ui-grid-menu-button

我想单独ui-grid-menu-buttonui-grid-menu.所以我的选择列按钮将在另一个地方.我试着把手表放在toggleMenu函数上,点击我的按钮它应该触发并应该打开列表.我也尝试使用广播选项,但它不起作用.

最好的方法是什么?

html css angularjs angular-ui-grid

6
推荐指数
1
解决办法
1004
查看次数

Powershell和C#中此运行空间不支持语法

我正在尝试使用C#中集成的Power Shell获取有关用户邮箱的信息,但出现以下错误:

This syntax is not supported by this run space. This might be because it is no-language mode.
Run Code Online (Sandbox Code Playgroud)

这是我正在使用的代码:

using System;
using System.Collections.ObjectModel;
using System.Collections;
using System.Linq;
using System.Text;
using System.Management.Automation;
using System.Management.Automation.Runspaces;
using System.Threading;
using System.Globalization;

namespace Office365
{
    class Program
    {
        static void Main(string[] args)
        {
            CultureInfo oldCI = Thread.CurrentThread.CurrentCulture;
            Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("en-US");
            Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");

            System.Security.SecureString secureString = new System.Security.SecureString();
            string myPassword = "mySecretPassword";
            foreach (char c in myPassword)
                secureString.AppendChar(c);
            PSCredential credential = new PSCredential("my@maildomain.com", …
Run Code Online (Sandbox Code Playgroud)

c# powershell office365

5
推荐指数
1
解决办法
2494
查看次数