我使用Access 2016构建了一个项目管理数据库,我添加了在.rtf中导出报告的可能性。该报告由几个文本框组成,包括项目的标题,描述和日期。
一切正常但是当报表在Word中打开时,每行都有换行符,这使得复制/粘贴描述文本变得非常难以在其他地方使用。
我查看了很多不同的论坛,但从未找到删除这些换行符的方法。现在我只尝试将文本框的格式从纯文本更改为富文本,但它没有用。
所有的想法都非常受欢迎,因为我现在在圈子里跑了两个星期......
答案 0 :(得分:0)
您不会删除换行符,标签和空格,只会删除这些标志。< / p>
但这是您的RTF查看器的设置。您的出口无法控制。
答案 1 :(得分:0)
你可以编写一个小的清理函数来搜索和删除生成的RTF文件中的换行符(RTF代码: <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Main-Class>io.vertx.core.Starter</Main-Class>
<Main-Verticle>main.Main</Main-Verticle>
</manifestEntries>
</transformer>
</transformers>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
<filter>
<artifact>org.sonatype.plexus:*</artifact>
<excludes>
<exclude>META-INF/plexus/components.xml</exclude>
<exclude>META-INF/sisu/javax.inject.Named</exclude>
</excludes>
</filter>
<filter>
<artifact>org.apache.maven:*</artifact>
<excludes>
<exclude>META-INF/plexus/components.xml</exclude>
<exclude>META-INF/sisu/javax.inject.Named</exclude>
</excludes>
</filter>
<filter>
<artifact>org.eclipse.aether:*</artifact>
<excludes>
<exclude>META-INF/sisu/javax.inject.Named</exclude>
</excludes>
</filter>
<filter>
<artifact>io.vertx:*</artifact>
<excludes>
<exclude>META-INF/sisu/javax.inject.Named</exclude>
</excludes>
</filter>
</filters>
<artifactSet>
<excludes>
<exclude>org.eclipse.xpand:*</exclude>
<exclude>org.mod4j.org.eclipse.xtend.util:*</exclude>
<exclude>com.ibm.icu:*</exclude>
<exclude>org.mod4j.*:*</exclude>
<exclude>*:*:tests</exclude>
</excludes>
</artifactSet>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>fat</shadedClassifierName>
</configuration>
</execution>
</executions>
</plugin>
)。
\par
代码(如果有)(说明的引导)\pard