Re: PrintPreview?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Adam,

You can post it here, and I will see it. No need to hide it from the
rest of the group.


--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx

"Adam Right" <adam@xxxxxxxxx> wrote in message
news:eySIW67DGHA.2704@xxxxxxxxxxxxxxxxxxxxxxx
> 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" <adam@xxxxxxxxx> wrote in message
> news:Ox5pct7DGHA.2040@xxxxxxxxxxxxxxxxxxxxxxx
>> 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]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote
>> in message news:%232MBAj7DGHA.2724@xxxxxxxxxxxxxxxxxxxxxxx
>>> 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]
>>> - mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx
>>>
>>> "Adam Right" <adam@xxxxxxxxx> wrote in message
>>> news:%23GWyVS5DGHA.3528@xxxxxxxxxxxxxxxxxxxxxxx
>>>> 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...
>>>>
>>>
>>>
>>
>>
>
>


.


Quantcast