Xml 如何在“后插入换行符”;x";人物
我目前正在开发一个使用Visual Basic编写脚本的新闻广播图形程序。我的挑战是: 我有一个.xml文件,其中包含几条数据,其中一条需要添加到图形中(我们网站的新闻标题)。但是,这些标题对于图形来说太长,需要在标题中添加换行符。我已经通过图形软件的其余部分成功地将这个标题输入到脚本中,它的temp.txt名称是BodyTxt(I).Text(其中(I)是脚本另一部分的循环的一部分,但始终等于1、2或3)。35个字符之后,我需要换行符。最简单的方法是什么Xml 如何在“后插入换行符”;x";人物,xml,vbscript,Xml,Vbscript,我目前正在开发一个使用Visual Basic编写脚本的新闻广播图形程序。我的挑战是: 我有一个.xml文件,其中包含几条数据,其中一条需要添加到图形中(我们网站的新闻标题)。但是,这些标题对于图形来说太长,需要在标题中添加换行符。我已经通过图形软件的其余部分成功地将这个标题输入到脚本中,它的temp.txt名称是BodyTxt(I).Text(其中(I)是脚本另一部分的循环的一部分,但始终等于1、2或3)。35个字符之后,我需要换行符。最简单的方法是什么 作为将来的参考,我可以看到它被用来在网
作为将来的参考,我可以看到它被用来在网页中创建一个类似的脚本,以便从RSS或.xml提要自动填充数据字段,而不破坏模板,或者强制缩小字体以适应整个字段,或者在一个单词中间创建一个断线。 这就是你要找的吗?
生成此输出:
For future reference, I could see 28
this being used in order to create a 29
similar script within a web page in 29
order to automatically populate 28
data fields from an RSS or .xml feed 29
without breaking the template and 29
either forcing a font to shrink to 28
fit the entire field, or creating a 29
line break in the middle of a word. 29
For future reference, I could see 28
this being used in order to create a 29
similar script within a web page in 29
order to automatically populate 28
data fields from an RSS or .xml feed 29
without breaking the template and 29
either forcing a font to shrink to 28
fit the entire field, or creating a 29
line break in the middle of a word. 29