GL Print

Can anyone please help me with my printing?
I have used Off-Screen Rendering technic to print by using Memory DC to create a memory RC.But all I got was black box which is the size I have given to print. I have tried to use glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT) to clear the background and use glClearColor(1.0, 1.0, 1.0, 1.0f) to set background to white so that I can draw on it but they both did not work. Is there anything I am missing? Does anyone know why?Thanks alot.