Problem!! SynEditPrintPreview not working!!??

2009-11-10
2013-05-30
  • I wont try to use this component, but it isn't working by my. Hier is my code:

        PrintPreview:=TSynEditPrintPreview.Create(Application);
          PrintPreview.Parent:=Form1;
          PrintPreview.BringToFront;
          SynEditPrint.SynEdit := NotePad;
          SynEditPrint.Title:=OpenedFile;
          PrintPreview.SynEditPrint := SynEditPrint;
          PrintPreview.UpdatePreview;
          PrintPreview.FirstPage;

    What is wrong with it? By SynEditPrintPreview I see only a clear page….