Delphi中的PowerPoint:用文本填充表格(PowerPoint in Delphi: fill table with text)
我正在为Dephi XE3中的PowerPoint编写一个加载项,它会插入一个表并用一些文本填充它。 我几乎已经完成了它,但我无法用文本填充表格。
这是我的代码:
insp:=CreateOleObject('PowerPoint.Application'); insp.ActivePresentation.Slides.Add(1, ppLayoutBlank); MSTable:=insp.ActivePresentation.Slides.Item(1); MSTable.Shapes.AddTable(5, 5, 100, 0); MSTable.Table.Cell(2,2).Shape.TextFrame.TextRange.Text:='Text';
当我试图填写表格时,我收到了这个错误
自动化对象不支持方法“表”
还试过这个:
MSTable.AddTable(5, 5, 100, 0).Cell(2,2).Shape.TextFrame.TextRange.Text:='Text'; MSTable.Table.Item(1).Cell(2,2).Shape.TextFrame.TextRange.Text:='Text';
在MSDN上找到了如何在VBA中编写此代码,但没有帮助。 请帮我解决这个问题。
I'm writing an add-in to PowerPoint in Dephi XE3, which would insert a table and fill it with some text. I am almost done with it, but I can't fill a table with text.
This is my code:
insp:=CreateOleObject('PowerPoint.Application'); insp.ActivePresentation.Slides.Add(1, ppLayoutBlank); MSTable:=insp.ActivePresentation.Slides.Item(1); MSTable.Shapes.AddTable(5, 5, 100, 0); MSTable.Table.Cell(2,2).Shape.TextFrame.TextRange.Text:='Text';
When I'm trying to fill a table, I'm getting this error
Method 'Table' not supported by automation object
Also tried this:
MSTable.AddTable(5, 5, 100, 0).Cell(2,2).Shape.TextFrame.TextRange.Text:='Text'; MSTable.Table.Item(1).Cell(2,2).Shape.TextFrame.TextRange.Text:='Text';
On MSDN found how to write this code in VBA, but doesn't help. Please help me solve this problem.
原文:https://stackoverflow.com/questions/18052566
最满意答案
您需要设置设置文件: http : //books.sonatype.com/nexus-book/reference/config-maven.html#ex-maven-nexus-simple
确保使用运行Nexus而不是localhost的计算机的IP地址/名称。
AFAIK,这应该是开箱即用的: https : //books.sonatype.com/nexus-book/reference/running.html
You need to setup the settings file: http://books.sonatype.com/nexus-book/reference/config-maven.html#ex-maven-nexus-simple
Make sure to use the IP address/ name of the machine running Nexus instead of localhost.
AFAIK, this should work out-of-the-box: https://books.sonatype.com/nexus-book/reference/running.html
相关问答
更多-
Nexus3:将特定的Maven存储库移动到另一个blob存储区(Nexus3: move a specific Maven repository into an another blob store)[2023-08-07]
目前这是不可能的。 您需要使用不同的Blob存储重新创建存储库。 我们有一些未来的计划来支持这样的事情,但这有点不合适。 浏览https://issues.sonatype.org/browse/NEXUS并提出问题,如果你愿意的话,它将有助于提高您对需求的认识:) Currently this is not possible. You would need to recreate the repository with a different blob store. We have some future ... -
Java无法验证您在Nexus上使用的SSL证书。 请参见: https : //support.sonatype.com/hc/en-us/articles/213465088-Maven-is-unable-to-connect-to-Nexus-after-configuring-Nexus-to-use-SSL- Java can't validate the SSL certificate you're using on Nexus. See here: https://support.sonat ...
-
Nexus和Maven构建(Nexus and Maven build)[2022-10-08]
我找到了解决方案,即使“mvn clean -U”仍然无效。 也许有人可以指出我正确的解决方案 1)插件不在maven中心。 你应该公开Maven-public,将maven-central和maven-releases / snapshots分组 2)我禁用了Nexus3中的匿名登录。 所以我需要创建一个用户连接到Nexus3。 这里有最终的settings.xmlmaven-surefire-plugin:pom:Nexus存储库中缺少2.9(maven-surefire-plugin:pom:2.9 missing from Nexus repository)[2022-09-15]
这将成为一个无休止的故事,将所有工件手动放入Nexus。 存储库代理的目的是检索它们并缓存它们。 如果它没有互联网接入,使其有点紧张而不是简化生活。 我会做什么:做一个mvn clean install dependency:go-offline在具有Internet访问权限的机器上进行mvn clean install dependency:go-offline ,然后将本地存储库复制到nexus版本或thridparty存储库,并让它通过web-gui重新索引。 这似乎是最简单的方法。 在nexus g ...Maven使用竹将非jar文件部署到nexus存储库(Maven deploy non jar file on to nexus repository using bamboo)[2022-05-15]
cba是AFAIK不是有效的包装值,请参阅“包装”: https://maven.apache.org/pom.html 也许你最好通过压缩你的脚本并使用包装“zip”进行部署。 I am able to solve this issue using the below command. Hope this will help. mvn deploy:deploy-file -Dfile=${bamboo.artifacts.path.cbaFile} -Dpackaging=cba -Dgenera ...要部署外部库,您可以使用Maven目标deploy:deploy-file 。 我从Nexus 3支持中获得了以下示例 在命令行中,这可能看起来像这样: mvn deploy:deploy-file -DgroupId=com.somecompany -DartifactId=project -Dversion=1.0.0 -DgeneratePom=true -Dpackaging=jar -DrepositoryId=nexus -Durl=http://localhost:8081/repositor ...Maven Nexus存储库(Maven Nexus Repository)[2021-09-24]
您需要设置设置文件: http : //books.sonatype.com/nexus-book/reference/config-maven.html#ex-maven-nexus-simple 确保使用运行Nexus而不是localhost的计算机的IP地址/名称。 AFAIK,这应该是开箱即用的: https : //books.sonatype.com/nexus-book/reference/running.html You need to setup the settings file: ht ...Nexus代理存储库(Nexus proxy repository)[2022-02-09]
如果您在Nexus中将代码库添加为proxy repository ,请不要忘记将代理添加到您用作所有Nexus请求(公共/快照) 镜像的存储库组中 - 假设您有这种配置。 (从我以前的回答中得到了这一点。) If you added the repository as a proxy repository in Nexus do not forget to add the proxy to the Repository Group which you use as mirror for all Nexus ...maven汇编如何从nexus存储库添加zip文件到构建(maven assembly how to add a zip flie from nexus repository to the build)[2022-09-19]
添加zip文件的依赖项,如下所示: 以下是maven-assembly-plugin创建的归档示例:the.group.id the-artifactid 1.0 tar.gz bin-unix 编辑: 您有两个选择,首先,如果存储库格式是raw,您可以使用Direct Deploy上传任何类型的文件,如其文档中所述: 直接部署 您可以将文件的HTTP PUT写入/ repository / your-repo-id / path-to-file 使用卷曲,你可以这样做: curl -v -u admin:admin123 --upload-file pom.xml http:// localhost:8081 / repository / maven-releases / org / foo / ...相关文章
更多- SVG文本text
- [转载红鱼儿]delphi 实现微信开发(1)
- 网络挖掘技术——text mining
- table-Oceanus配置说明
- Guava集合工具类-Table接口映射处理
- Solr官方文档系列——Text Analysis
- jquery 怎么得到link中text的属性
- Lua table(表、数组、字典)
- Lua 元表(Metatable)改变table的行为
- div中table100%宽度的浏览器兼容性问题
最新问答
更多- 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
- 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
- OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
- 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
- codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
- 在计算机拍照在哪里进入
- 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
- No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
- 单页应用程序:页面重新加载(Single Page Application: page reload)
- 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
- System.StackOverflow错误(System.StackOverflow error)
- KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
- 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
- android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
- TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
- 企业安全培训的各项内容
- 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
- C#类名中允许哪些字符?(What characters are allowed in C# class name?)
- NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
- 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
- 将多个行和可变行移动到列(moving multiple and variable rows to columns)
- 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
- 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
- Angular $资源不会改变方法(Angular $resource doesn't change method)
- 在Angular 5中不是一个函数(is not a function in Angular 5)
- 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
- 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
- 常见的python rpc和cli接口(Common python rpc and cli interface)
- Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
- 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)