Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi,
This is my code. when i try to download pdf report i am getting the following error.
Anyone please help me.Thanks in advance
code:
$.ajax({

type: "POST",
contentType: "application/json; charset=utf-8",
url: ServiceUri + "LoadOnTimeReport",
data: '{"LocationId":"' + $("#cmbLocation option:selected").val() + '","Location":"' + $("#cmbLocation option:selected").text() + '","statuschangeddatefrom":"' + $("#txtStatusChangeFromDate").val() + '","statuschangedateto":"' + $("#txtStatusChangeToDate").val() + '","exportType":"' + exportType + '"}',
dataType: "json",
success: function (data) {
$("#lblMessage").empty();
},
error: function (xhr, status, error) {

alert(xhr.responseText);
}

});

error:
VB
%PDF-1.3
%??
1 0 obj
<<
/Type /Outlines
/Count 0
>>
endobj
2 0 obj

[/PDF /Text /ImageC]
endobj
3 0 obj
<<
/Type /Pages
/Count 1
/Kids [10 0 R ]
>>
endobj
4 0 obj
<<
/Type /Font
/Subtype /TrueType
/Name /F1
/BaseFont /Arial,Bold
/FirstChar 32
/LastChar 255
/Widths [
Posted
Updated 23-Oct-15 0:43am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900