Andrzej

Andrzej

  • NA
  • 6
  • 0

printing

Mar 24 2009 7:06 AM
#pragma region DRUKOWANIE
private: System::Void toolStripButton11_Click(System::Object^  sender, System::EventArgs^  e) {
             System::Drawing::Printing::PrintDocument^ document = gcnew System::Drawing::Printing::PrintDocument();
             String^ Name = (current + "\\" + textBox1->Text)->ToString();
             if(Name != nullptr){
                document->DocumentName = Name;
              }
             printPreviewDialog1->Document = document;
             printPreviewDialog1->Width = 300;
             printPreviewDialog1->Height = 400;
             printPreviewDialog1->Show();
              }
#pragma endregion
Thic piece of code shows an empty dialog. Why?!
Input file is in RTF format and his name is written without extension (*.rtf), but it, I think, doesn't matter. The path is correct.
Please help me :)