问题列表 - 第18157页

如何使用 Digital-Metaphors Report Builder RAP 在计算字段中设置字体属性

我正在尝试使用 RAP 在 Digital-Metaphors Report Builder 中的变量中设置字体属性。我正在使用的代码是:

if (DBdetail['LINEATTR']='1') then begin
    budgetValue.font.style:=[fsBold];
end;
Run Code Online (Sandbox Code Playgroud)

但这不起作用,我收到编译时错误。如何设置字体样式?

delphi reportbuilder

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

.NET Web服务。(ASMX)如何调整请求和响应消息?

我正在构建一个Web服务来接受公司的通知。该公司通知我该服务的结构不正确,并向我提供了可运行的Web服务的.asmx。看起来像这样:

请求:

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:xsd="http://www.w3.org/2001/XMLSchema"
       xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <AuthenticationInfo
           xmlns="http://www.usps.com/postalone/services/UserAuthenticationSchema">
      <UserId xmlns="">string</UserId>
      <UserPassword xmlns="">string</UserPassword>
    </AuthenticationInfo>
    <fullServiceAddressCorrectionNotification
            xmlns="http://www.usps.com/postalone/services/POCustomerMailXMLServices">string</fullServiceAddressCorrectionNotification>
  </soap12:Body>
</soap12:Envelope>
Run Code Online (Sandbox Code Playgroud)

响应:

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:xsd="http://www.w3.org/2001/XMLSchema"
       xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <FullServiceNixieDetailNotificationResponse
         xmlns="http://idealliance.org/maildat/Specs/md091/mailxml70C/mailxml">
      <FullServiceNixieDetailNotificationResult>string</FullServiceNixieDetailNotificationResult>
    </FullServiceNixieDetailNotificationResponse>
  </soap12:Body>
</soap12:Envelope>
Run Code Online (Sandbox Code Playgroud)

我的看起来像这样:请求:

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:xsd="http://www.w3.org/2001/XMLSchema"
       xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <FullServiceNixieDetailNotification
          xmlns="http://idealliance.org/maildat/Specs/md091/mailxml70C/mailxml">
      <AuthenticationInfo>
        <UserID>string</UserID>
        <Password>string</Password>
      </AuthenticationInfo>
      <fullServiceAddressCorrectionNotification>string</fullServiceAddressCorrectionNotification>
    </FullServiceNixieDetailNotification>
  </soap12:Body>
</soap12:Envelope>
Run Code Online (Sandbox Code Playgroud)

响应:

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:xsd="http://www.w3.org/2001/XMLSchema"
       xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <notificationResponse
       xmlns="http://www.usps.com/postalone/services/POCustomerMailXMLServices">string</notificationResponse>
  </soap12:Body>
</soap12:Envelope>
Run Code Online (Sandbox Code Playgroud)

如您所见,我的东西包裹在一个我需要摆脱的额外元素中。Unfortunatley,我不确定如何执行此操作。我的Web服务代码如下:

Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.ComponentModel
Imports System.Data.SqlClient

Public Structure AuthenticationInfoType …
Run Code Online (Sandbox Code Playgroud)

vb.net web-services asmx

2
推荐指数
1
解决办法
4160
查看次数

有没有办法让VS2008停止警告我无法访问的代码?

我的应用程序中有一些配置选项

const bool ExecuteThis=true;
const bool ExecuteThat=false;
Run Code Online (Sandbox Code Playgroud)

然后像使用它的代码

if(ExecuteThis){ DoThis(); }
if(ExecuteThat){ DoThat(); } //unreachable code warning here
Run Code Online (Sandbox Code Playgroud)

问题是,我们可能会制作略有不同的版本,而不是ExecuteThis或ExecuteThat,我们希望能够使用consts,这样我们就不会在运行时对这些事情进行任何速度惩罚.但我厌倦了看到关于无法访问的代码的警告.我是一个喜欢消除所有警告的人,但我对这些事情无能为力.我可以使用一些选项来关闭这些警告吗?

c# compiler-warnings

32
推荐指数
4
解决办法
8295
查看次数

如何在没有冲突的情况下在git中拉远程分支?

在遥控器上有一个我想要工作的分支.它已经老了,我的本地机器上不再有它的旧版本了.它远远落后于大师.每当我试图拉它时,我都会遇到冲突.我只想在本地系统上创建远程分支的精确副本.为什么会导致冲突?

我试过了:

git pull origin branch_name:branch_name
Run Code Online (Sandbox Code Playgroud)

这在我的本地机器上创建了一个具有正确名称的新分支,但它导致了冲突.

git pull git-pull

8
推荐指数
2
解决办法
4055
查看次数

用mysql连接查询怎么样?

我一直试图让它工作很长一段时间,但它似乎没有用,也许它甚至不可能,我想要做的是使用像这样的执行mysql连接查询我找到的例子......

SELECT *
FROM Table1
INNER JOIN Table2 ON Table1.col LIKE '%' + Table2.col + '%'
Run Code Online (Sandbox Code Playgroud)

但它似乎根本不起作用,任何可以给予的帮助都会非常棒,谢谢!

mysql join sql-like

42
推荐指数
1
解决办法
4万
查看次数

什么是最好的"如何"网站来学习如何为iPhone编程?

什么是最好的"如何"网站来学习如何为iPhone编程?

iphone xcode

4
推荐指数
1
解决办法
552
查看次数

域名未知的SSL证书

我们在使用SSL保护内部网/互联网网站时遇到问题,我们无法事先知道合格的域名.

基本上,我正在尝试制作一个程序,将安装在我的直接控制之外的网络服务器上,以便可以通过内部或互联网访问.在任何一种情况下,我希望它通过SSL(https)安全.为此,我想在目标计算机上包含并安装SSL证书.我的安装程序已完全预先打包,不需要我的任何特定的安装期间或安装后的干预.问题是,我不能提前知道目标机器的名称或域名,因此我可以告诉SSL连接将在访问时返回警告(或更糟?),因为我包含的证书将(必须)有一个不同的名字.

我真的想避免这些警告,但我仍然希望保持安全.如果没有提前知道域名,有没有办法在没有证书警告的情况下安装SSL连接?

感谢您的帮助.

ssl certificate

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

3
推荐指数
1
解决办法
354
查看次数

如何定义表示集合中最新对象的SQLAlchemy关系?

我有一个SQLAlchemy模型,表x和表之间有一对多的关系y.idy中最大的记录(如果有的话)y.x_id = x.id是特殊的.类X和类Y映射表xy.

我知道如何定义X.all_y(ORDER BY y.id).我如何定义X.latest_y等价于X.all_y[-1]

python sqlalchemy

4
推荐指数
1
解决办法
783
查看次数

使用javascript禁用中间点击滚动

背景:我正在创建一个让人联想到whenisgood.net的表,因为它具有click-n-drag切换表元素.当左,中,右鼠标按钮激活mousedown事件时,我想调用不同类型的切换代码.

通过使用JQuery,我有一个良好的开端.

$(".togglable").bind("contextmenu", function() {return false;});
$(".togglable").bind("mousedown", function(e){
  e.preventDefault();
  toggle(this, e);
});
Run Code Online (Sandbox Code Playgroud)

toggle()我可以e.which用来确定点击了什么按钮的函数中.

妙语:我用e.preventDefault()希望将停止滚动的中间点击默认行为.它没有.我该怎么做才能阻止滚动动作激活?

另请参阅"使用中键单击触发onclick事件"

javascript jquery scroll javascript-events

9
推荐指数
3
解决办法
1万
查看次数