locked
Printing A WMF or EMF RRS feed

  • Question

  • Greetings All:

    I am attempting to print a WMF or EMF using C#.NET.  When I print this EMF out using Windows Picture/Fax viewer it prints perfect.  I am using the following code, but the print is a bit distorted and offset on the page.  Any ideas on what I can check?  Thanks.


    void Button3Click(object sender, EventArgs e) 
    {          
      PrintDocument pd = new PrintDocument(); 
      pd.PrintPage += new PrintPageEventHandler(pqr); 
      pd.Print();        
    void pqr(object o, PrintPageEventArgs e) 
      Image i = new Metafile(@"c:\test\test.emf"); 
      Point p = new Point(0,0); 
      e.Graphics.DrawImage(i, p);     


    Saturday, February 28, 2009 12:22 AM

Answers