菜单
  

                    Microsoft.Office.Interop.Word.Application WordApp = new Microsoft.Office.Interop.Word.ApplicationClass();
                    Microsoft.Office.Interop.Word.Document WordDoc = WordApp.Documents.Add(ref Nothing, ref Nothing, ref Nothing, ref Nothing);
                    index = 1;
                    //Microsoft.Office.Interop.Word.Paragraph oPara1 = WordDoc.Content.Paragraphs.Add(ref Nothing);
                    //oPara1.Range.Font.Name = "Verdana";  
                    //oPara1.Range.Font.Size = 20;  
                    //oPara1.Range.Text = dt_试卷信息.Rows[0]["S_试卷标题"].ToString();  
                    //oPara1.Range.ParagraphFormat.Alignment = Microsoft.Office.Interop.Word.WdParagraphAlignment.wdAlignParagraphCenter;     
                    //oPara1.Range.InsertParagraphAfter();//
                    WordDoc.Paragraphs.Last.Range.Text = dt_试卷信息.Rows[0]["S_试卷标题"].ToString() + "\n\r";
                    Add_选择题(WordDoc);
                    Add_填空题(WordDoc);
                    Add_判断题(WordDoc);
                    Add_名词解释题(WordDoc);
                    Add_简答题(WordDoc);
                    WordDoc.SaveAs(ref filename, 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, ref Nothing);
                    WordDoc.Close(ref Nothing, ref Nothing, ref Nothing);
                    WordApp.Quit(ref Nothing, ref Nothing, ref Nothing);
                    MessageBox.Show("试卷生成完毕");
               }}
            
            private void button1_Click(object sender, EventArgs e)
            {
                this.Close();
            }
            S_试题筛选 s_试题筛选;
            private void S_筛选_Load(object sender, EventArgs e)
            {
                s_试题筛选 = new S_试题筛选();
                this.Controls.Add(s_试题筛选);
  1. 上一篇:C#高职计算机导论考试系统设计与实现
  2. 下一篇:VB设备管理系统设计+需求分析+可行性分析
  1. JAVA+MYSQL《算法与数据结构...

  2. 基于MOOCs的《Java程学设计...

  3. 《网站设计与管理》课程...

  4. jsp《网站设计与管理》课...

  5. MOOCs的高中《物理》教学网站的设计与实现

  6. 《数据结构》微课程设计与实现

  7. 计算机网络安全问题和对策研究

  8. 电站锅炉暖风器设计任务书

  9. 乳业同业并购式全产业链...

  10. 当代大学生慈善意识研究+文献综述

  11. 中考体育项目与体育教学合理结合的研究

  12. 十二层带中心支撑钢结构...

  13. 河岸冲刷和泥沙淤积的监测国内外研究现状

  14. 大众媒体对公共政策制定的影响

  15. 酸性水汽提装置总汽提塔设计+CAD图纸

  16. 杂拟谷盗体内共生菌沃尔...

  17. java+mysql车辆管理系统的设计+源代码

  

About

751论文网手机版...

主页:http://www.751com.cn

关闭返回