I want to print a Text file but it is printing an empty document, there is no contents inside the generated PDF Printed file.
var pd = new PrintDocument
{
DocumentName = fileName,
DefaultPageSettings =
{
Landscape = this.Landscape
}
};
pd.Print();
Can someone please help…