喜欢头文字d下载 换图的 钕籹加 171 14...

&>&图片文字轮播效果(图片和文字自动滚动)
图片文字轮播效果(图片和文字自动滚动)
上传大小:2.03MB
图片轮播是类似知乎日报上的一个轮播效果,如下图。
综合评分:5(7位用户评分)
下载个数:
{%username%}回复{%com_username%}{%time%}\
/*点击出现回复框*/
$(".respond_btn").on("click", function (e) {
$(this).parents(".rightLi").children(".respond_box").show();
e.stopPropagation();
$(".cancel_res").on("click", function (e) {
$(this).parents(".res_b").siblings(".res_area").val("");
$(this).parents(".respond_box").hide();
e.stopPropagation();
/*删除评论*/
$(".del_comment_c").on("click", function (e) {
var id = $(e.target).attr("id");
$.getJSON('/index.php/comment/do_invalid/' + id,
function (data) {
if (data.succ == 1) {
$(e.target).parents(".conLi").remove();
alert(data.msg);
$(".res_btn").click(function (e) {
var parentWrap = $(this).parents(".respond_box"),
q = parentWrap.find(".form1").serializeArray(),
resStr = $.trim(parentWrap.find(".res_area_r").val());
console.log(q);
//var res_area_r = $.trim($(".res_area_r").val());
if (resStr == '') {
$(".res_text").css({color: "red"});
$.post("/index.php/comment/do_comment_reply/", q,
function (data) {
if (data.succ == 1) {
var $target,
evt = e || window.
$target = $(evt.target || evt.srcElement);
var $dd = $target.parents('dd');
var $wrapReply = $dd.find('.respond_box');
console.log($wrapReply);
//var mess = $(".res_area_r").val();
var mess = resS
var str = str.replace(/{%header%}/g, data.header)
.replace(/{%href%}/g, 'http://' + window.location.host + '/user/' + data.username)
.replace(/{%username%}/g, data.username)
.replace(/{%com_username%}/g, data.com_username)
.replace(/{%time%}/g, data.time)
.replace(/{%id%}/g, data.id)
.replace(/{%mess%}/g, mess);
$dd.after(str);
$(".respond_box").hide();
$(".res_area_r").val("");
$(".res_area").val("");
$wrapReply.hide();
alert(data.msg);
}, "json");
/*删除回复*/
$(".rightLi").on("click", '.del_comment_r', function (e) {
var id = $(e.target).attr("id");
$.getJSON('/index.php/comment/do_comment_del/' + id,
function (data) {
if (data.succ == 1) {
$(e.target).parent().parent().parent().parent().parent().remove();
$(e.target).parents('.res_list').remove()
alert(data.msg);
//填充回复
function KeyP(v) {
var parentWrap = $(v).parents(".respond_box");
parentWrap.find(".res_area_r").val($.trim(parentWrap.find(".res_area").val()));
评论共有4条
很满意,非常感兴趣,感谢分享
非常感兴趣,感谢分享
非常有帮助,感谢分享
综合评分:
积分/C币:5
VIP会员动态
CSDN下载频道资源及相关规则调整公告V11.10
下载频道用户反馈专区
下载频道积分规则调整V1710.18
spring mvc+mybatis+mysql+maven+bootstrap 整合实现增删查改简单实例.zip
资源所需积分/C币
当前拥有积分
当前拥有C币
输入下载码
为了良好体验,不建议使用迅雷下载
图片文字轮播效果(图片和文字自动滚动)
会员到期时间:
剩余下载个数:
剩余积分:0
为了良好体验,不建议使用迅雷下载
积分不足!
资源所需积分/C币
当前拥有积分
您可以选择
程序员的必选
绿色安全资源
资源所需积分/C币
当前拥有积分
当前拥有C币
(仅够下载10个资源)
为了良好体验,不建议使用迅雷下载
资源所需积分/C币
当前拥有积分
当前拥有C币
为了良好体验,不建议使用迅雷下载
资源所需积分/C币
当前拥有积分
当前拥有C币
您的积分不足,将扣除 10 C币
为了良好体验,不建议使用迅雷下载
你当前的下载分为234。
你还不是VIP会员
开通VIP会员权限,免积分下载
你下载资源过于频繁,请输入验证码
您因违反CSDN下载频道规则而被锁定帐户,如有疑问,请联络:!
若举报审核通过,可返还被扣除的积分
被举报人:
double2hao
举报的资源分:
请选择类型
资源无法下载
资源无法使用
标题与实际内容不符
含有危害国家安全内容
含有反动色情等内容
含广告内容
版权问题,侵犯个人或公司的版权
*详细原因:
图片文字轮播效果(图片和文字自动滚动)图片文字截取工具 v1.3.0.14 中文绿色版
图片文字截取工具是专门用来截取程序或图片中文字的工具,它可以截取屏幕上的任何程序、任何地方的文本,就像使用截图软件一样,即使是被禁止拷贝的文本,由于该软件不是基于OCR技术的,所以运行很快
提示:本软件不是OCR软件,自然无法抓取图片中的文字(该文字实际上也是图片的一部分),有这方面需求的请自己找OCR软件
功能:轻松拷贝图片上的文字,把图片转成文本,抓图抓文工具
使用非常简单:
运行工具后,按Ctrl+Shift键,鼠标变成&十&字,用鼠标框住目标区,松开Ctrl+Shift键后即弹出AquaSetup的对话框,选择您想要的结果,OK
运行工具后,它自动躲藏在任务栏的托盘区内,您不用再去理睬它,何时想用就按Ctrl+Shift键
图片文字截取工具 v1.3.0.14 中文绿色版
高速下载器通道
其他下载地址
下载不了?|在线填充文字图片制作-填充文字图片在线制作工具
填充文字图片制作工具,是动态图片基地最新推出的一款在线制作填充文字及其它形状的图片文字工具,欢迎试用!
请输入填充文字内容
颜色组合:
边框颜色:
七彩边框:
填充效果:
是否自动缩放背景:
字体选择:
--以上为保存字体--
草檀斋毛泽东字体
迷你简黄草
方正黄草简体
andaleMono
字体大小:
--12PX----13PX----14PX----15PX----16PX----17PX----18PX----19PX----20PX----21PX----22PX----23PX----24PX----25PX----26PX----27PX----28PX----29PX----30PX----31PX----32PX----33PX----34PX----35PX----36PX----37PX----38PX----39PX----40PX----41PX----42PX----43PX----44PX----45PX----46PX----47PX----48PX----49PX----50PX--
--55PX----65PX----75PX----85PX----95PX----105PX----115PX----125PX----135PX----145PX----155PX----165PX----175PX----185PX----195PX----205PX----215PX----225PX----235PX----245PX----255PX----265PX----275PX----285PX----295PX--
预置颜色:
预置效果:
预览背景:
基地网友 :183.19.***发表于<font color='#18-2-27 12:11:00【第1楼】点击加关注。潮白河孔雀城。更多优质房源再次
基地网友 :221.5..***发表于<font color='#17-12-17 11:07:00【第2楼】成熟不是人心变老是泪在打转还能微笑
基地网友 :14.220.***发表于<font color='#17-11-7 20:09:00【第3楼】兴宇网店
基地网友 :211.14.***发表于<font color='#17-10-24 15:54:00【第4楼】白城货运中心
基地网友 :175.19.***发表于<font color='#17-10-6 20:26:00【第5楼】大家晚上好!
基地网友 荣是我的天:1.***发表于<font color='#17-9-24 16:47:00【第6楼】地点
基地网友 晶晶(SZ C.***发表于<font color='#17-8-25 14:38:00【第7楼】为什么字体更换不了
基地网友 :42.120.***发表于<font color='#17-7-21 16:51:00【第8楼】车十四事实上那边
基地网友 :117.13.***发表于<font color='#17-6-14 22:32:00【第9楼】徐伟耀
基地网友 :1.62.3.***发表于<font color='#17-5-25 13:51:00【第10楼】图片好几分钟没生成太慢了不好用随笔 - 34&
文章 - 0&评论 - 19&trackbacks - 0
本文中用C#来操作Word,包括:
创建Word;
插入文字,选择文字,编辑文字的字号、粗细、颜色、下划线等;
设置段落的首行缩进、行距;
设置页面页边距和纸张大小;
设置页眉、页码;
插入图片,设置图片宽高以及给图片添加标题;
插入表格,格式化表格,往表格中插入数据;
保存Word,打印Word;
重新打开Word等。
Visual studio版本:Visual Studio 应该也可以)
准备工作:
/* 1. 添加引用COM里面的 Microsoft Word 12.0 Object. Library 引用(12.0表示Word 2007版本)
2. 导命名空间
using MSWord =Microsoft.Office.Interop.W
using System.IO;
using System.R
3. 把引用中的Microsoft.Office.Interop.Word的&属性&中的嵌入互操作设为False */
以下是全部代码:(代码有点长,但请不要有压力,直接复制进去就能直接成功运行)
2 using System.Collections.G
3 using System.L
4 using System.Runtime.InteropS
5 using System.T
6 using MSWord = Microsoft.Office.Interop.W
7 using System.IO;
8 using System.R
10 namespace Console_WordSkill_All
class Program
static void Main(string[] args)
//文件路径变量
string strC
//文本内容变量
MSWord.Application wordA
//Word应用程序变量
MSWord.Document wordD
//Word文档变量
path = Environment.CurrentDirectory + "\\MyWord_Print.doc";
wordApp = new MSWord.ApplicationClass(); //初始化
wordApp.Visible = true;//使文档可见
//如果已存在,则删除
if (File.Exists((string)path))
File.Delete((string)path);
//由于使用的是COM库,因此有许多变量需要用Missing.Value代替
Object Nothing = Missing.V
wordDoc = wordApp.Documents.Add(ref Nothing, ref Nothing, ref Nothing, ref Nothing);
#region 页面设置、页眉图片和文字设置,最后跳出页眉设置
//页面设置
wordDoc.PageSetup.PaperSize = MSWord.WdPaperSize.wdPaperA4;//设置纸张样式为A4纸
wordDoc.PageSetup.Orientation = MSWord.WdOrientation.wdOrientP//排列方式为垂直方向
wordDoc.PageSetup.TopMargin = 57.0f;
wordDoc.PageSetup.BottomMargin = 57.0f;
wordDoc.PageSetup.LeftMargin = 57.0f;
wordDoc.PageSetup.RightMargin = 57.0f;
wordDoc.PageSetup.HeaderDistance = 30.0f;//页眉位置
//设置页眉
wordApp.ActiveWindow.View.Type = MSWord.WdViewType.wdNormalV//普通视图(即页面视图)样式
wordApp.ActiveWindow.View.SeekView = MSWord.WdSeekView.wdSeekPrimaryH//进入页眉设置,其中页眉边距在页面设置中已完成
wordApp.Selection.ParagraphFormat.Alignment = MSWord.WdParagraphAlignment.wdAlignParagraphR//页眉中的文字右对齐
//插入页眉图片(测试结果图片未插入成功)
wordApp.Selection.ParagraphFormat.Alignment = MSWord.WdParagraphAlignment.wdAlignParagraphC
string headerfile = @"C:\Users\xiahui\Desktop\OficeProgram\3.jpg";
MSWord.InlineShape shape1 = wordApp.ActiveWindow.ActivePane.Selection.InlineShapes.AddPicture(headerfile, ref Nothing, ref Nothing, ref Nothing);
shape1.Height = 5;//强行设置貌似无效,图片没有按设置的缩放&&图片的比例并没有改变。
shape1.Width = 20;
wordApp.ActiveWindow.ActivePane.Selection.InsertAfter("
文档页眉");//在页眉的图片后面追加几个字
//去掉页眉的横线
wordApp.ActiveWindow.ActivePane.Selection.ParagraphFormat.Borders[MSWord.WdBorderType.wdBorderBottom].LineStyle = MSWord.WdLineStyle.wdLineStyleN
wordApp.ActiveWindow.ActivePane.Selection.Borders[MSWord.WdBorderType.wdBorderBottom].Visible = false;
wordApp.ActiveWindow.ActivePane.View.SeekView = MSWord.WdSeekView.wdSeekMainD//退出页眉设置
#endregion
#region 页码设置并添加页码
//为当前页添加页码
MSWord.PageNumbers pns = wordApp.Selection.Sections[1].Headers[MSWord.WdHeaderFooterIndex.wdHeaderFooterEvenPages].PageN//获取当前页的号码
pns.NumberStyle = MSWord.WdPageNumberStyle.wdPageNumberStyleNumberInD//设置页码的风格,是Dash形还是圆形的
pns.HeadingLevelForChapter = 0;
pns.IncludeChapterNumber = false;
pns.RestartNumberingAtSection = false;
pns.StartingNumber = 0; //开始页页码?
object pagenmbetal = MSWord.WdPageNumberAlignment.wdAlignPageNumberC//将号码设置在中间
object first = true;
wordApp.Selection.Sections[1].Footers[MSWord.WdHeaderFooterIndex.wdHeaderFooterEvenPages].PageNumbers.Add(ref pagenmbetal, ref first);
#endregion
#region 行间距与缩进、文本字体、字号、加粗、斜体、颜色、下划线、下划线颜色设置
wordApp.Selection.ParagraphFormat.LineSpacing = 16f;//设置文档的行间距
wordApp.Selection.ParagraphFormat.FirstLineIndent = 30;//首行缩进的长度
//写入普通文本
strContent = "我是普通文本\n";
wordDoc.Paragraphs.Last.Range.Text = strC
wordDoc.Paragraphs.Last.Range.Text = "我再加一行试试,这里不加'\\n'";
//直接添加段,不是覆盖( += )
wordDoc.Paragraphs.Last.Range.Text += "不会覆盖的,";
//添加在此段的文字后面,不是新段落
wordDoc.Paragraphs.Last.Range.InsertAfter("这是后面的内容\n");
//将文档的前4个字替换成"哥是替换文字",并将其颜色设为红色
object start = 0;
object end = 4;
MSWord.Range rang = wordDoc.Range(ref start, ref end);
rang.Font.Color = MSWord.WdColor.wdColorR
rang.Text = "哥是替换文字";
wordDoc.Range(ref start, ref end);
//写入黑体文本
object unite = MSWord.WdUnits.wdS
wordApp.Selection.EndKey(ref unite, ref Nothing);//将光标移到文本末尾
wordApp.Selection.ParagraphFormat.FirstLineIndent = 0;//取消首行缩进的长度
strContent = "这是黑体文本\n";
wordDoc.Paragraphs.Last.Range.Font.Name = "黑体";
wordDoc.Paragraphs.Last.Range.Text = strC
//写入加粗文本
strContent = "这是粗体文本\n"; //
wordApp.Selection.EndKey(ref unite, ref Nothing);//这一句不加,有时候好像也不出问题,不过还是加了安全
wordDoc.Paragraphs.Last.Range.Font.Bold = 1;
wordDoc.Paragraphs.Last.Range.Text = strC
//写入15号字体文本
strContent = "我这个文本的字号是15号,而且是宋体\n";
wordApp.Selection.EndKey(ref unite, ref Nothing);
wordDoc.Paragraphs.Last.Range.Font.Size = 15;
wordDoc.Paragraphs.Last.Range.Font.Name = "宋体";
wordDoc.Paragraphs.Last.Range.Text = strC
//写入斜体文本
strContent = "我是斜体字文本\n";
wordApp.Selection.EndKey(ref unite, ref Nothing);
wordDoc.Paragraphs.Last.Range.Font.Italic = 1;
wordDoc.Paragraphs.Last.Range.Text = strC
//写入蓝色文本
strContent = "我是蓝色的文本\n";
wordApp.Selection.EndKey(ref unite, ref Nothing);
wordDoc.Paragraphs.Last.Range.Font.Color = MSWord.WdColor.wdColorB
wordDoc.Paragraphs.Last.Range.Text = strC
//写入下划线文本
strContent = "我是下划线文本\n";
wordApp.Selection.EndKey(ref unite, ref Nothing);
wordDoc.Paragraphs.Last.Range.Font.Underline = MSWord.WdUnderline.wdUnderlineT
wordDoc.Paragraphs.Last.Range.Text = strC
//写入红色下画线文本
strContent = "我是点线下划线,并且下划线是红色的\n";
wordApp.Selection.EndKey(ref unite, ref Nothing);
wordDoc.Paragraphs.Last.Range.Font.Underline = MSWord.WdUnderline.wdUnderlineDottedH
wordDoc.Paragraphs.Last.Range.Font.UnderlineColor = MSWord.WdColor.wdColorR
wordDoc.Paragraphs.Last.Range.Text = strC
//取消下划线,并且将字号调整为12号
strContent = "我他妈不要下划线了,并且设置字号为12号,黑色不要斜体\n";
wordApp.Selection.EndKey(ref unite, ref Nothing);
wordDoc.Paragraphs.Last.Range.Font.Size = 12;
wordDoc.Paragraphs.Last.Range.Font.Underline = MSWord.WdUnderline.wdUnderlineN
wordDoc.Paragraphs.Last.Range.Font.Color = MSWord.WdColor.wdColorB
wordDoc.Paragraphs.Last.Range.Font.Italic = 0;
wordDoc.Paragraphs.Last.Range.Text = strC
#endregion
#region 插入图片、居中显示,设置图片的绝对尺寸和缩放尺寸,并给图片添加标题
wordApp.Selection.EndKey(ref unite, ref Nothing); //将光标移动到文档末尾
//图片文件的路径
string filename = Environment.CurrentDirectory + "\\6.jpg";
//要向Word文档中插入图片的位置
Object range = wordDoc.Paragraphs.Last.R
//定义该插入的图片是否为外部链接
Object linkToFile = false;
//默认,这里貌似设置为bool类型更清晰一些
//定义要插入的图片是否随Word文档一起保存
Object saveWithDocument = true;
//使用InlineShapes.AddPicture方法(【即&嵌入型&】)插入图片
wordDoc.InlineShapes.AddPicture(filename, ref linkToFile, ref saveWithDocument, ref range);
wordApp.Selection.ParagraphFormat.Alignment = MSWord.WdParagraphAlignment.wdAlignParagraphC//居中显示图片
//设置图片宽高的绝对大小
//wordDoc.InlineShapes[1].Width = 200;
//wordDoc.InlineShapes[1].Height = 150;
//按比例缩放大小
wordDoc.InlineShapes[1].ScaleWidth = 20;//缩小到20% ?
wordDoc.InlineShapes[1].ScaleHeight = 20;
//在图下方居中添加图片标题
wordDoc.Content.InsertAfter("\n");//这一句与下一句的顺序不能颠倒,原因还没搞透
wordApp.Selection.EndKey(ref unite, ref Nothing);
wordApp.Selection.ParagraphFormat.Alignment = MSWord.WdParagraphAlignment.wdAlignParagraphC
wordApp.Selection.Font.Size = 10;//字体大小
wordApp.Selection.TypeText("图1 测试图片\n");
#endregion
#region 添加表格、填充数据、设置表格行列宽高、合并单元格、添加表头斜线、给单元格添加图片
wordDoc.Content.InsertAfter("\n");//这一句与下一句的顺序不能颠倒,原因还没搞透
wordApp.Selection.EndKey(ref unite, ref Nothing); //将光标移动到文档末尾
wordApp.Selection.ParagraphFormat.Alignment = MSWord.WdParagraphAlignment.wdAlignParagraphL
//object WdLine2 = MSWord.WdUnits.wdL//换一行;
//wordApp.Selection.MoveDown(ref WdLine2, 6, ref Nothing);//向下跨15行输入表格,这样表格就在文字下方了,不过这是非主流的方法
//设置表格的行数和列数
int tableRow = 6;
int tableColumn = 6;
//定义一个Word中的表格对象
MSWord.Table table = wordDoc.Tables.Add(wordApp.Selection.Range,
tableRow, tableColumn, ref Nothing, ref Nothing);
//默认创建的表格没有边框,这里修改其属性,使得创建的表格带有边框
table.Borders.Enable = 1;//这个值可以设置得很大,例如5、13等等
//表格的索引是从1开始的。
wordDoc.Tables[1].Cell(1, 1).Range.Text = "列\n行";
for (int i = 1; i & tableR i++)
for (int j = 1; j & tableC j++)
if (i == 1)
table.Cell(i, j + 1).Range.Text = "Column " +//填充每列的标题
if (j == 1)
table.Cell(i + 1, j).Range.Text = "Row " + //填充每行的标题
table.Cell(i + 1, j + 1).Range.Text = i + "行 " + j + "列";
//填充表格的各个小格子
table.Rows.Add(ref Nothing);
table.Rows[tableRow + 1].Height = 35;//设置新增加的这行表格的高度
//向新添加的行的单元格中添加图片
string FileName = Environment.CurrentDirectory + "\\6.jpg";//图片所在路径
object LinkToFile = false;
object SaveWithDocument = true;
object Anchor = table.Cell(tableRow + 1, tableColumn).R//选中要添加图片的单元格
wordDoc.Application.ActiveDocument.InlineShapes.AddPicture(FileName, ref LinkToFile, ref SaveWithDocument, ref Anchor);
//由于是本文档的第2张图,所以这里是InlineShapes[2]
wordDoc.Application.ActiveDocument.InlineShapes[2].Width = 50;//图片宽度
wordDoc.Application.ActiveDocument.InlineShapes[2].Height = 35;//图片高度
// 将图片设置为四周环绕型
MSWord.Shape s = wordDoc.Application.ActiveDocument.InlineShapes[2].ConvertToShape();
s.WrapFormat.Type = MSWord.WdWrapType.wdWrapS
//设置table样式
table.Rows.HeightRule = MSWord.WdRowHeightRule.wdRowHeightAtL//高度规则是:行高有最低值下限?
table.Rows.Height = wordApp.CentimetersToPoints(float.Parse("0.8"));//
table.Range.Font.Size = 10.5F;
table.Range.Font.Bold = 0;
table.Range.ParagraphFormat.Alignment = MSWord.WdParagraphAlignment.wdAlignParagraphC//表格文本居中
table.Range.Cells.VerticalAlignment = MSWord.WdCellVerticalAlignment.wdCellAlignVerticalB//文本垂直贴到底部
//设置table边框样式
table.Borders.OutsideLineStyle = MSWord.WdLineStyle.wdLineStyleD//表格外框是双线
table.Borders.InsideLineStyle = MSWord.WdLineStyle.wdLineStyleS//表格内框是单线
table.Rows[1].Range.Font.Bold = 1;//加粗
table.Rows[1].Range.Font.Size = 12F;
table.Cell(1, 1).Range.Font.Size = 10.5F;
wordApp.Selection.Cells.Height = 30;//所有单元格的高度
//除第一行外,其他行的行高都设置为20
for (int i = 2; i &= tableR i++)
table.Rows[i].Height = 20;
//将表格左上角的单元格里的文字(&行& 和 &列&)居右
table.Cell(1, 1).Range.ParagraphFormat.Alignment = MSWord.WdParagraphAlignment.wdAlignParagraphR
//将表格左上角的单元格里面下面的&列&字移到左边,相比上一行就是将ParagraphFormat改成了Paragraphs[2].Format
table.Cell(1, 1).Range.Paragraphs[2].Format.Alignment = MSWord.WdParagraphAlignment.wdAlignParagraphL
table.Columns[1].Width = 50;//将第 1列宽度设置为50
//将其他列的宽度都设置为75
for (int i = 2; i &= tableC i++)
table.Columns[i].Width = 75;
//添加表头斜线,并设置表头的样式
table.Cell(1, 1).Borders[MSWord.WdBorderType.wdBorderDiagonalDown].Visible = true;
table.Cell(1, 1).Borders[MSWord.WdBorderType.wdBorderDiagonalDown].Color = MSWord.WdColor.wdColorR
table.Cell(1, 1).Borders[MSWord.WdBorderType.wdBorderDiagonalDown].LineWidth = MSWord.WdLineWidth.wdLineWidth150
//合并单元格
table.Cell(4, 4).Merge(table.Cell(4, 5));//横向合并
table.Cell(2, 3).Merge(table.Cell(4, 3));//纵向合并,合并(2,3),(3,3),(4,3)
#endregion
wordApp.Selection.EndKey(ref unite, ref Nothing); //将光标移动到文档末尾
wordDoc.Content.InsertAfter("\n");
wordDoc.Content.InsertAfter("就写这么多,算了吧!");
//WdSaveFormat为Word 2003文档的保存格式
object format = MSWord.WdSaveFormat.wdFormatD// office 2007就是wdFormatDocumentDefault
//将wordDoc文档对象的内容保存为DOCX文档
wordDoc.SaveAs(ref path, ref format, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing);
//关闭wordDoc文档对象
//看是不是要打印
//wordDoc.PrintOut();
wordDoc.Close(ref Nothing, ref Nothing, ref Nothing);
//关闭wordApp组件对象
wordApp.Quit(ref Nothing, ref Nothing, ref Nothing);
Console.WriteLine(path + " 创建完毕!");
Console.ReadKey();
//我还要打开这个文档玩玩
MSWord.Application app = new MSWord.Application();
MSWord.Document doc = null;
object unknow = Type.M
app.Visible = true;
string str = Environment.CurrentDirectory + "\\MyWord_Print.doc";
object file =
doc = app.Documents.Open(ref file,
ref unknow, ref unknow, ref unknow, ref unknow,
ref unknow, ref unknow, ref unknow, ref unknow,
ref unknow, ref unknow, ref unknow, ref unknow,
ref unknow, ref unknow, ref unknow);
string temp = doc.Paragraphs[1].Range.Text.Trim();
Console.WriteLine("你他妈输出temp干嘛?");
catch (Exception ex)
Console.WriteLine(ex.Message);
wordDoc.Paragraphs.Last.Range.Text += "我真的不打算再写了,就写这么多吧";
Console.ReadKey();
生成编辑的Word内容如下图所示:
参考资料:
http://blog.csdn.net/ruby97/article/details/7406806
http://blog.csdn.net/yhrun/article/details/7674540
http://www.cnblogs.com/eye-like/p/4121219.html
http://www.cnblogs.com/knowledgesea/archive//3095376.html
http://www.cnblogs.com/shi2172843/p/5848116.html
https://msdn.microsoft.com/en-us/library/bb257531(v=office.12).aspx
http://wenku.baidu.com/view/80ec0a6c1eb91a37f1115cab.html?from=search
阅读(...) 评论()

我要回帖

更多关于 头文字d下载 的文章

 

随机推荐