Subj : quick report : writing in canvas causes problem To : borland.public.cpp.borlandcpp From : cadeau77 Date : Tue Aug 31 2004 03:18 pm I'm trying to put a background in a QR by loading a metafile and writing directly on the canvas like that : std::auto_ptr tmp(new TMetafile()); tmp->LoadFromFile("c:\\background.emf"); TRect rect = QuickRep1->ClientRect; QuickRep1->QRPrinter->Canvas->StretchDraw(rect, tmp.get()); BUT once I close the preview window I get an error EOSError with message 'System Error. Code: 1400.Invalid window handle' Does anybody has an idea/other way to do that? Thanks .