Declare @PASS char(16)
Declare @COUNTER int
SET @COUNTER = 0
While @COUNTER < 2
begin
select @PASS =replace
(replace
(replace
(replace
(replace(
(select substring(@String, 1 + Number, 1)
from master..spt_values
where number < datalength(@String)
order by NEWID()
for xml path('')
), '<', '<')
,'>','>')
,'&','&')
,'"','''''')
,'&apos','''')
select @pass
set @counter = @counter + 1
end
我创建了一个Excel AddIn,它使用带有2个按钮的用户控件来添加文本并将图像添加到Excel工作表中。我已编译代码没有错误但运行时抛出以下异常
找不到指定的文件(HRESULT异常:0x80070002)