webbrowerser
估计可以吧

解决方案 »

  1.   

    IList area_list = 从数据路查出ILIST的数据
      

  2.   

    谢谢楼上,但是,因为直接是逻辑里面了,不想再做个form,再加webbrowerser 这样的做法。
    据说可以先绘图,再打印的方法,可是不知道怎么写。请高手帮忙。
    string path = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "/word.html";
                        StringReader myReader = new StringReader(path);
                        float linesPerPage = 0;
                        float yPosition = 0;
                        int count = 0;
                        float leftMargin = e.MarginBounds.Left;
                        float topMargin = e.MarginBounds.Top;
                        string line = null;
                        Font printFont = new Font("宋体", 15, FontStyle.Bold | FontStyle.Italic); 
                        SolidBrush myBrush = new SolidBrush(Color.Black);
                        linesPerPage = e.MarginBounds.Height / printFont.GetHeight(e.Graphics);
                        while (count < linesPerPage && ((line = myReader.ReadLine()) != null))
                        {
                            yPosition = topMargin + (count * printFont.GetHeight(e.Graphics));
                            e.Graphics.DrawString(line, printFont, myBrush, leftMargin, yPosition, new StringFormat());
                            count++;
                        }
                        if (line != null)
                            e.HasMorePages = true;
                        else
                            e.HasMorePages = false;
                        myBrush.Dispose();