当前位置: 首页 > news >正文

大气集团网站现在做网站还用dw做模板了吗

大气集团网站,现在做网站还用dw做模板了吗,网站怎么设置支付功能,怎么建立小公司网站毫无疑问GO的生态就是一坨大便。老子英文水平小学啊。 实现简单文本格式 文本字体颜色、大小、突出显示等。 创建要给docx文件容器【我估算的】 doc : document.New() defer doc.Close() doc.SaveToFile(simple.docx) 把容器保存为文件 设置标题 创建自然段…毫无疑问GO的生态就是一坨大便。老子英文水平小学啊。 实现简单文本格式 文本字体颜色、大小、突出显示等。 创建要给docx文件容器【我估算的】 doc : document.New() defer doc.Close() doc.SaveToFile(simple.docx)  把容器保存为文件 设置标题 创建自然段Paragraph run设置文本内容 para : doc.AddParagraph() run : para.AddRun() para.SetStyle(Title) run.AddText(Simple Document Formatting) 效果图 设置缩进 para doc.AddParagraph() para.Properties().SetFirstLineIndent(0.5 * measurement.Inch)run para.AddRun() run.AddText(A run is a string of characters with the same formatting. ) 设置粗体、字体、大小、颜色 run para.AddRun() run.Properties().SetBold(true) run.Properties().SetFontFamily(Courier) run.Properties().SetSize(15) run.Properties().SetColor(color.Red) run.AddText(Multiple runs with different formatting can exist in the same paragraph. ) 换行 run.AddBreak() run para.AddRun() run.AddText(Adding breaks to a run will insert line breaks after the run. ) run.AddBreak() run.AddBreak() 输入文本 run createParaRun(doc, Runs support styling options:) 大写 run createParaRun(doc, small caps)run.Properties().SetSmallCaps(true) 画线和画两条 run createParaRun(doc, strike)run.Properties().SetStrikeThrough(true)run createParaRun(doc, double strike)run.Properties().SetDoubleStrikeThrough(true) 其他 run createParaRun(doc, outline)run.Properties().SetOutline(true)run createParaRun(doc, emboss)run.Properties().SetEmboss(true)run createParaRun(doc, shadow)run.Properties().SetShadow(true)run createParaRun(doc, imprint)run.Properties().SetImprint(true)run createParaRun(doc, highlighting)run.Properties().SetHighlight(wml.ST_HighlightColorYellow)run createParaRun(doc, underline)run.Properties().SetUnderline(wml.ST_UnderlineWavyDouble, color.Red)run createParaRun(doc, text effects)run.Properties().SetEffect(wml.ST_TextEffectAntsRed)//选择编号样式 nd : doc.Numbering.Definitions()[0]for i : 1; i 5; i {p : doc.AddParagraph() //设置编号等级p.SetNumberingLevel(i - 1) //设置编号样式p.SetNumberingDefinition(nd)run : p.AddRun()run.AddText(fmt.Sprintf(Level %d, i))}完整DEMO代码 // Copyright 2017 FoxyUtils ehf. All rights reserved. package main //导包 import ( fmtosgithub.com/unidoc/unioffice/colorgithub.com/unidoc/unioffice/common/licensegithub.com/unidoc/unioffice/documentgithub.com/unidoc/unioffice/measurementgithub.com/unidoc/unioffice/schema/soo/wml ) //资本家的密钥 func init() {// Make sure to load your metered License API key prior to using the library.// If you need a key, you can sign up and create a free one at https://cloud.unidoc.ioerr : license.SetMeteredKey(os.Getenv(UNIDOC_LICENSE_API_KEY))if err ! nil {panic(err)} }func main() {//创建docdoc : document.New() //关闭docdefer doc.Close()para : doc.AddParagraph()run : para.AddRun()para.SetStyle(Title)run.AddText(Simple Document Formatting)para doc.AddParagraph()para.SetStyle(Heading1)run para.AddRun()run.AddText(Some Heading Text)para doc.AddParagraph()para.SetStyle(Heading2)run para.AddRun()run.AddText(Some Heading Text)para doc.AddParagraph()para.SetStyle(Heading3)run para.AddRun()run.AddText(Some Heading Text)para doc.AddParagraph()para.Properties().SetFirstLineIndent(0.5 * measurement.Inch)run para.AddRun()run.AddText(A run is a string of characters with the same formatting. )run para.AddRun()run.Properties().SetBold(true)run.Properties().SetFontFamily(Courier)run.Properties().SetSize(15)run.Properties().SetColor(color.Red)run.AddText(Multiple runs with different formatting can exist in the same paragraph. )run para.AddRun()run.AddText(Adding breaks to a run will insert line breaks after the run. )run.AddBreak()run.AddBreak()run createParaRun(doc, Runs support styling options:)run createParaRun(doc, small caps)run.Properties().SetSmallCaps(true)run createParaRun(doc, strike)run.Properties().SetStrikeThrough(true)run createParaRun(doc, double strike)run.Properties().SetDoubleStrikeThrough(true)run createParaRun(doc, outline)run.Properties().SetOutline(true)run createParaRun(doc, emboss)run.Properties().SetEmboss(true)run createParaRun(doc, shadow)run.Properties().SetShadow(true)run createParaRun(doc, imprint)run.Properties().SetImprint(true)run createParaRun(doc, highlighting)run.Properties().SetHighlight(wml.ST_HighlightColorYellow)run createParaRun(doc, underline)run.Properties().SetUnderline(wml.ST_UnderlineWavyDouble, color.Red)run createParaRun(doc, text effects)run.Properties().SetEffect(wml.ST_TextEffectAntsRed)nd : doc.Numbering.Definitions()[0]for i : 1; i 5; i {p : doc.AddParagraph()p.SetNumberingLevel(i - 1)p.SetNumberingDefinition(nd)run : p.AddRun()run.AddText(fmt.Sprintf(Level %d, i))}doc.SaveToFile(simple.docx) }func createParaRun(doc *document.Document, s string) document.Run {para : doc.AddParagraph()run : para.AddRun()run.AddText(s)return run }
http://www.w-s-a.com/news/353039/

相关文章:

  • 开封网站建设培训郑州高端网站建设哪家好
  • 东莞哪家做网站很有名的公司即墨专业医院网站制作公司
  • 做面食网站china cd wordpress
  • 门户网站 营销优秀建筑模型案例作品
  • 训做网站的心得体会范文中山市 有限公司网站建设
  • 服装电子商务网站建设过程与实现两学一做学习教育网站
  • 住房和城建设网站怎么用源码建站
  • 监理工程师证查询网站百度关键词优化软件网站
  • 关于建筑建设的网站asp网站建设报告书
  • 服务二级公司网站建设平台销售模式有哪些
  • 南昌县建设局网站微信分销小程序开发
  • 网站设计师需要什么知识与技能wordpress个性
  • 做茶叶网站的目的和规划有什么做照片书的网站
  • 开福区城乡建设局门户网站关键词挖掘查询工具爱站网
  • 网站建设全国排名沈阳seo按天计费
  • 成都公司网站设计无锡seo网站推广费用
  • 建网站平台要多少钱购物网站界面设计策划
  • 学完js了可以做哪些网站长沙建站官网
  • 怎么样做问卷网站多少钱英语
  • 房产网站建设方案建筑公司是干什么的
  • wordpress建的大型网站柳州市网站建设
  • 石家庄做网站的公司有哪些微信自媒体网站建设
  • 池州哪里有做网站注册公司有哪些风险
  • 做古代风格头像的网站对网站政务建设的建议
  • 网站搜索栏怎么做设计个网站要多少钱
  • 阿里巴巴网站建设目标wamp wordpress
  • 自己做的网站怎么挂网上金蝶erp
  • 网站的页面由什么组成淘宝网网站建设的需求分析
  • 软文网站推广法dede5.7内核qq个性门户网站源码
  • 个人备案网站名称校园网站建设特色