pdf generated using fpdf is not opening in windows os

i have generated pdf using fpdf butit is not opening in windows could someone tell me were i missed it

Detail to us you development environment and the relevant lines of your code.

I have no problems with Windows, except for caches.

Yii::import(‘application.extensions.fpdf.*’);

require(‘fpdf.php’);

if($result!=null)

{

$pdf=new FPDF();


$pdf->SetTitle("QuestionPaper",false);


$pdf->SetFont('Arial','B',16);


$pdf->AddPage();


$pdf->Cell(0,10,"Exam Type",0,0,'C',false);


$pdf->Ln();


$pdf->Cell(0,10,"Exam Name",0,0,'L',false);


$pdf->Cell(0,10,"Subject",0,0,'R',false);


$pdf->Ln();


$pdf->Cell(0,10,"Standard",0,0,'L',false);


$pdf->Cell(0,10,"Section",0,0,'R',false);


$pdf->Ln();


$pdf->Cell(0,10,"Date",0,0,'L',false);


$pdf->Cell(0,10,"TotalMarks",0,0,'R',false);


$pdf->Ln();





foreach($result as $key=>$value)


{


	$pdf->SetFont('Arial','B',12);


	$pdf->Cell(0,10,"$value[0]-marks('".$value[1]."')",0,0,'C',false,'');


	$sno=1;





	$pdf->SetFont('Arial','B',10);





	for($k=2;$k<($value[1]+2);$k++)


	{


		$pdf->Ln();


		if($sno<=9)


		$pdf->Write(10,"0$sno.$value[$k]");


		else


		$pdf->Write(10,"$sno.$value[$k]");


		$sno++;


		


	}


	$pdf->Ln();


}


$pdf->Output();

}

this is a view page and variables used here is sent from controller through render

Is a pdf Viewer installed on windows? Do you send the correct headers? Which Browser are you using? Is is https?

see i just executed the code shown above and i am using linux and after transferring it to windows it is not opening in it…i think i am missing some lines of codes …