Hi
I am using a function InitDocStruct() to initialize the document I want to print through my program.
Definition of the function is
void InitDocStruct( DOCINFO* di, char* docname)
{
// Always zero it before using it.
memset( di, 0, sizeof( DOCINFO ) );
// Fill in the required members.
di->cbSize = sizeof( DOCINFO );
di->lpszDocName = docname;
}
I am calling the function from main() InitDocStruct( &di, "c:\\YServer.txt");
After I run the program a blank page is printed.
Am I not initializing the document properly.
Kindly advice
Regards
Karan