打印预览? [英] PrintPreview?

查看:73
本文介绍了打印预览?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我正在使用.Net Framework 2.0 final,我使用.Net打印库来打印一个文件。
我使用printPreview对话框打印文档但是在显示

预览后,当我按下打印时按钮,虽然预览中有一些单词,但我无法打印

文档。那么,

预览中是否有错误?


谢谢...

解决方案

Adam,


没有看到你的代码,就不可能说了。你的代码可能有一个错误




你能发一个完整的例子吗?


-

- Nicholas Paldino [.NET / C#MVP]

- mv * @ spam .guard.caspershouse.com


" Adam Right" <广告** @ right.com>在留言中写道

新闻:%2 **************** @ TK2MSFTNGP12.phx.gbl ...



我正在使用.Net Framework 2.0 final,我使用.Net打印库来打印文档。我使用printPreview对话框打印文档但是在显示预览后,当我按下打印按钮时按钮,我无法打印文件尽管预览中有一些文字。那么,预览中是否有错误?

谢谢......








我的代码在下面,


m_PrintDocument = new PrintDocument(); < br $>
m_PrintDocument.PrintPage + = new PrintPageEventHandler(

m_PrintDocument_PrintPage);

PrintPreviewDialog printPreviewDialog1 = new PrintPreviewDialog();

printPreviewDialog1.Document = m_PrintDocument;

表格m_Temp =(表格)printPreviewDialog1;

m_Temp.WindowState = FormWindowState.Maximized;

printPreviewDialog1.ShowDialog( ); b / b

void m_PrintDocument_PrintPage(对象发送者,PrintPageEventArgs e)

{

字体printFont =新字体(" Courier" ,10,FontStyle.Regular);

String myString =" Trying";

e.Graphics.DrawString(myString,printFont,Brushes.Black,0,0,新的

StringFormat());

}


虽然文档上有单词

,但printPreview对话框不会打印我的文档。

谢谢..

Nicholas Paldino [.NET / C#MVP]" < mv*@spam.guard.caspershouse.com>写在

消息新闻:%2 **************** @ TK2MSFTNGP12.phx.gbl ...

Adam,

没有看到你的代码,就不可能说了。你的代码中可能有一个错误

你能发布一个完整的例子吗?

-
- Nicholas Paldino [.NET / C# MVP]
- mv*@spam.guard.caspershouse.com

" Adam Right" <广告** @ right.com>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP12.phx.gbl ...



我正在使用.Net Framework 2.0 final,我使用.Net打印库来打印文档。我使用printPreview对话框打印文档但是在显示预览后,当我按下打印按钮时按钮,我无法打印文件尽管预览中有一些文字。那么,预览中是否有错误?

谢谢......




您好,


您能否提供您的邮件地址。我想发送一个附件,其中

有关于这个问题的屏幕截图....


" Adam Right" <广告** @ right.com>在消息中写道

新闻:Ox ************** @ TK2MSFTNGP14.phx.gbl ...


您好,

我的代码如下:

m_PrintDocument = new PrintDocument();
m_PrintDocument.PrintPage + = new PrintPageEventHandler(
m_PrintDocument_PrintPage);
PrintPreviewDialog printPreviewDialog1 = new PrintPreviewDialog();
printPreviewDialog1.Document = m_PrintDocument;
表格m_Temp =(表格)printPreviewDialog1;
m_Temp.WindowState = FormWindowState。最大化;
printPreviewDialog1.ShowDialog();

void m_PrintDocument_PrintPage(object sender,PrintPageEventArgs e)
{font printFont = new Font(" Courier",10) ,FontStyle.Regular);
String myString =" Trying";
e.Graphics.DrawString(myString,printFont,Brushes.Black,0,0,new
StringFormat());
}

尽管如此,printPreview对话框不会打印我的文档这是文件上的文字。
谢谢..
Nicholas Paldino [.NET / C#MVP]" < mv*@spam.guard.caspershouse.com>在消息新闻中写道
:%2 **************** @ TK2MSFTNGP12.phx.gbl ...

Adam,

没有看到你的代码,就不可能说了。你的代码可能有一个错误。

你能发布一个完整的例子吗?

-
- Nicholas Paldino [.NET / C# MVP]
- mv*@spam.guard.caspershouse.com

" Adam Right" <广告** @ right.com>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP12.phx.gbl ...



我正在使用.Net Framework 2.0 final,我使用.Net打印库来打印文档。我使用printPreview对话框打印文档但是在显示预览后,当我按下打印按钮时按钮,我无法打印文件尽管预览中有一些文字。那么,预览中是否有错误?

谢谢......





Hi,

I am using .Net Framework 2.0 final, and i use .Net printing library to
print a document. I use printPreview dialog to print the document but after
preview was shown, when i press the "print" button, i cannot print the
document although there is some words on the preview. So, is there a bug in
the preview?

Thanks...

解决方案

Adam,

Without seeing your code, it''s impossible to say. You might have a bug
in your code.

Can you post a complete example?

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Adam Right" <ad**@right.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...

Hi,

I am using .Net Framework 2.0 final, and i use .Net printing library to
print a document. I use printPreview dialog to print the document but
after preview was shown, when i press the "print" button, i cannot print
the document although there is some words on the preview. So, is there a
bug in the preview?

Thanks...



Hi,

Hi,

My code is on the below,

m_PrintDocument = new PrintDocument( );
m_PrintDocument.PrintPage += new PrintPageEventHandler(
m_PrintDocument_PrintPage );
PrintPreviewDialog printPreviewDialog1 = new PrintPreviewDialog ( );
printPreviewDialog1.Document = m_PrintDocument;
Form m_Temp = ( Form ) printPreviewDialog1;
m_Temp.WindowState = FormWindowState.Maximized;
printPreviewDialog1.ShowDialog ( );

void m_PrintDocument_PrintPage( object sender, PrintPageEventArgs e )
{
Font printFont = new Font ( "Courier" , 10 , FontStyle.Regular );
String myString = "Trying";
e.Graphics.DrawString( myString, printFont, Brushes.Black, 0, 0, new
StringFormat( ) );
}

The printPreview dialog does not print my document although there are words
on the document.
Thanks..
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:%2****************@TK2MSFTNGP12.phx.gbl...

Adam,

Without seeing your code, it''s impossible to say. You might have a bug
in your code.

Can you post a complete example?

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Adam Right" <ad**@right.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...

Hi,

I am using .Net Framework 2.0 final, and i use .Net printing library to
print a document. I use printPreview dialog to print the document but
after preview was shown, when i press the "print" button, i cannot print
the document although there is some words on the preview. So, is there a
bug in the preview?

Thanks...




Hi,

can you give your mail address. I want to send yo an attachment in which
there is a screen shot about this problem....

"Adam Right" <ad**@right.com> wrote in message
news:Ox**************@TK2MSFTNGP14.phx.gbl...

Hi,

Hi,

My code is on the below,

m_PrintDocument = new PrintDocument( );
m_PrintDocument.PrintPage += new PrintPageEventHandler(
m_PrintDocument_PrintPage );
PrintPreviewDialog printPreviewDialog1 = new PrintPreviewDialog ( );
printPreviewDialog1.Document = m_PrintDocument;
Form m_Temp = ( Form ) printPreviewDialog1;
m_Temp.WindowState = FormWindowState.Maximized;
printPreviewDialog1.ShowDialog ( );

void m_PrintDocument_PrintPage( object sender, PrintPageEventArgs e )
{
Font printFont = new Font ( "Courier" , 10 , FontStyle.Regular );
String myString = "Trying";
e.Graphics.DrawString( myString, printFont, Brushes.Black, 0, 0, new
StringFormat( ) );
}

The printPreview dialog does not print my document although there are
words on the document.
Thanks..
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in message news:%2****************@TK2MSFTNGP12.phx.gbl...

Adam,

Without seeing your code, it''s impossible to say. You might have a
bug in your code.

Can you post a complete example?

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Adam Right" <ad**@right.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...

Hi,

I am using .Net Framework 2.0 final, and i use .Net printing library to
print a document. I use printPreview dialog to print the document but
after preview was shown, when i press the "print" button, i cannot print
the document although there is some words on the preview. So, is there a
bug in the preview?

Thanks...





这篇关于打印预览?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆