在 ASP.NET 应用程序中创建地址标签
我有一个简单的应用程序,用于将我的客户详细信息插入数据库。 字段是 1) 客户端ID 2)首先 3) 中纳米 4)最后纳米 5) 添加1 6) 添加2 7) 城市 8) 状态 ........
现在我想要的是为我的公司生成地址标签,以便向他们发送实体信件,以提醒他们付款、待处理账单等。
我只想让它们像这样对齐
亚当·约翰·克拉克
XYZ 街 ABC 路(这是 Add1)
ABC Cafe 前面(示例 Add2)
城市名称
州名称
手机号码
这里的要点是我希望它们导出到MS-Word按列打印,即MS-WORD中每页的两列,在一列中5个名称和其他5个名称(例如)
问题是,当我使用中继器时,文本未按 MS-Word 中的列样式格式化。
问题是撕下各个标签并将它们粘贴到实体信封上,因此如果我只打印 Word 文档的一面,页面就会浪费,而且我有大量的页面需要打印。 所以最终我丢失了很多文件..
有什么解决方案吗..
谢谢
i have a Simple app for inserting my clients details into the Database.
The Fields are
1) ClientID
2) frstnm
3) midnm
4) lastnm
5) Add1
6) Add2
7) City
8) State
........
Now what i want is the generation of address Labels for my company to send them physical letters to remind them about payments,pending bills etc.
I just want them to alligned Like this
Adam John Clarke
XYZ Street ABC Road ( This is Add1)
infront of ABC Cafe ( Example Add2)
City Name
State Name
Mobile Number
The Point here is that I want them Exported to MS-Word to be printed in Columns i.e. Two Columns of each page in MS-WORD and in One column 5 names and other 5 names ( For Example)
The Problem is that when i use repeater the Text is not formatted in Columns Style in MS-Word.
The Problem is Tear the individual Labels and Paste them on Physical Envelope so if i print only one side of the Word Document The Pages go Waste and i have loads of them to print.
So at the end of the day i have lost many papers..
Is there any solution for that..
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
与其吐出 HTML,为什么不吐出 WordML(MS Word 使用的本机类 xml 标记语言)或 RTF 格式的文档?
是的,这有点难做到,但你会得到你真正想要实现的目标。
instead of spitting out HTML, why not spit out either WordML (the native xml-like markup language used by MS Word) or RTF formatted documents?
Yes, it's a bit harder to do, but you'll get exactly what you're actually trying to accomplish.
如果有人仍在寻找解决方案,您可能会发现这篇最近的 CodeProject 文章对您有帮助。
http://www.codeproject.com/Articles/847159 /打印地址标签-来自-ASP-Net
If anyone is still looking for a solution to this you may find this recent CodeProject article of some help to you.
http://www.codeproject.com/Articles/847159/Printing-Address-Labels-From-ASP-Net
将标签页翻转过来,然后再次将其送入打印机。
Turn the label pages upside down and feed them through the printer again.