C#, asp.net을 도구로 사용하고 있습니다.문서를 여는 동안 동시에 응용 프로그램의 인쇄 대화 상자 (예 : 단어, pdf 판독기)를 여는 방법 프로그래밍 방식으로
다음 코드를 사용하여 클라이언트 측에서 파일을 전송하고 여는 동시에 클라이언트 측에서 문서를 여는 동안 모든 응용 프로그램의 기본 인쇄 대화 상자 (예 : 단어, pdf 판독기)를 열려고합니다. .
if (lfileFormat.ToUpper() == "Excel")
{
Response.ContentType = "application/vnd.ms-excel";
}
else if (lfileFormat.ToUpper() == "PDF")
{
Response.ContentType = "application/pdf";
}
else if (lfileFormat.ToUpper() == "HTML")
{
Response.ContentType = "text/HTML";
}
Response.AddHeader("Content-Disposition", string.Format("attachment; filename = {0}", fi.Name));
Response.AddHeader("Content-Length", fi.Length.ToString());
Response.TransmitFile(fi.FullName);
Response.End();
이유는 무엇인가에'TOUPPER()'값이 혼합 된 경우에 작성 비교할 될 것? – Vogel612