Click here to Skip to main content
15,890,436 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Display only 2 digs in string in label. Pin
Richard MacCutchan23-Apr-13 2:28
mveRichard MacCutchan23-Apr-13 2:28 
GeneralRe: Display only 2 digs in string in label. Pin
Søren Lyder Nielsen23-Apr-13 2:32
Søren Lyder Nielsen23-Apr-13 2:32 
GeneralRe: Display only 2 digs in string in label. Pin
Richard MacCutchan23-Apr-13 3:55
mveRichard MacCutchan23-Apr-13 3:55 
GeneralRe: Display only 2 digs in string in label. Pin
Søren Lyder Nielsen23-Apr-13 4:42
Søren Lyder Nielsen23-Apr-13 4:42 
GeneralRe: Display only 2 digs in string in label. Pin
Richard MacCutchan23-Apr-13 4:49
mveRichard MacCutchan23-Apr-13 4:49 
AnswerRe: Display only 2 digs in string in label. Pin
Member 1000269911-May-13 0:46
Member 1000269911-May-13 0:46 
GeneralRe: Display only 2 digs in string in label. Pin
Richard MacCutchan11-May-13 4:10
mveRichard MacCutchan11-May-13 4:10 
QuestionC++ Windows Form Application Printing Pin
eakteam16-Apr-13 10:37
professionaleakteam16-Apr-13 10:37 
this is my code in windows form.... it compiles without error but it prints blank page.... where i done wrong?? please help...


C++
#pragma endregion
        // Declare the PrintDocument object.

    private: System::Void Button1_Click_1(System::Object^  sender, System::EventArgs^  e) {
   PrintDialog1->AllowSomePages = true;

   PrintDialog1->ShowHelp = true;

   PrintDocument ^docToPrint = gcnew PrintDocument;
   PrintDialog1->Document = docToPrint;
   if ( docToPrint == nullptr )
         System::Windows::Forms::MessageBox::Show(  "null" );



   if ( PrintDialog1 == nullptr )
         System::Windows::Forms::MessageBox::Show(  "pnull" );



   System::Windows::Forms::DialogResult result = PrintDialog1->ShowDialog();
   System::Windows::Forms::MessageBox::Show( result.ToString() );



   if ( result == System::Windows::Forms::DialogResult::OK )
   {
       docToPrint->Print();
   }

             }
private: System::Void document_PrintPage_1(System::Object^  sender, System::Drawing::Printing::PrintPageEventArgs^  e) {
   String^ text = "In document_PrintPage method.";
   System::Drawing::Font^ printFont = gcnew System::Drawing::Font( "Times New Roman",20,System::Drawing::FontStyle::Bold );

   e->Graphics->DrawString("EAK TEAM TEST!!!",printFont,Brushes::Black,50,50);
   e->Graphics->DrawString( text, printFont, System::Drawing::Brushes::Black, 10, 10 );
         }

AnswerRe: C++ Windows Form Application Printing Pin
NotPolitcallyCorrect16-Apr-13 12:01
NotPolitcallyCorrect16-Apr-13 12:01 
GeneralRe: C++ Windows Form Application Printing Pin
eakteam16-Apr-13 22:55
professionaleakteam16-Apr-13 22:55 
GeneralRe: C++ Windows Form Application Printing Pin
NotPolitcallyCorrect17-Apr-13 2:42
NotPolitcallyCorrect17-Apr-13 2:42 
GeneralRe: C++ Windows Form Application Printing Pin
eakteam17-Apr-13 5:24
professionaleakteam17-Apr-13 5:24 
GeneralRe: C++ Windows Form Application Printing Pin
NotPolitcallyCorrect18-Apr-13 5:42
NotPolitcallyCorrect18-Apr-13 5:42 
AnswerRe: C++ Windows Form Application Printing Pin
Richard MacCutchan16-Apr-13 21:21
mveRichard MacCutchan16-Apr-13 21:21 
GeneralRe: C++ Windows Form Application Printing Pin
eakteam16-Apr-13 22:55
professionaleakteam16-Apr-13 22:55 
GeneralRe: C++ Windows Form Application Printing Pin
Richard MacCutchan17-Apr-13 2:28
mveRichard MacCutchan17-Apr-13 2:28 
GeneralRe: C++ Windows Form Application Printing Pin
eakteam17-Apr-13 5:24
professionaleakteam17-Apr-13 5:24 
QuestionI get Input string was not in a correct format. error Pin
Søren Lyder Nielsen15-Apr-13 4:12
Søren Lyder Nielsen15-Apr-13 4:12 
AnswerRe: I get Input string was not in a correct format. error Pin
Richard MacCutchan15-Apr-13 4:38
mveRichard MacCutchan15-Apr-13 4:38 
AnswerRe: I get Input string was not in a correct format. error Pin
eakteam16-Apr-13 23:35
professionaleakteam16-Apr-13 23:35 
AnswerRe: I get Input string was not in a correct format. error Pin
Member 1000269911-May-13 0:48
Member 1000269911-May-13 0:48 
QuestionC++ CLR Windows Form Application (Printing to the Printer) Pin
eakteam14-Apr-13 11:58
professionaleakteam14-Apr-13 11:58 
AnswerRe: C++ CLR Windows Form Application (Printing to the Printer) Pin
Richard MacCutchan14-Apr-13 20:59
mveRichard MacCutchan14-Apr-13 20:59 
GeneralRe: C++ CLR Windows Form Application (Printing to the Printer) Pin
eakteam14-Apr-13 23:59
professionaleakteam14-Apr-13 23:59 
GeneralRe: C++ CLR Windows Form Application (Printing to the Printer) Pin
Richard MacCutchan15-Apr-13 0:24
mveRichard MacCutchan15-Apr-13 0:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.