Hi Krishna,
Can you try with this ?
function PrintPreview() {
window.open(Xrm.Page.context.getClientUrl() + “/_forms/print/print.aspx?allsubgridspages=false&formid=” +
Xrm.Page.ui.formSelector.getCurrentItem().getId() + “&id=” + Xrm.Page.data.entity.getId() +
“&objectType=” + Xrm.Page.context.getQueryStringParameters().etc);
}
I hope that's helpful for you