내 응용 프로그램에서 그리드의 데이터를 Excel 파일로 내보내 내 문서에 저장하고 있습니다.사용자가 바탕 화면에 파일을 열 때 적절한 소프트웨어가없는 경우 온라인 문서를 통해 내 보낸 파일을 여는 방법 Pin
사용자가 Excel에서 자신의 컴퓨터에 설치 해달라고하면, 그것은
중 하나가 ... 그것을 어떻게 말해 줄 수 .. 내 보낸 파일을 볼 구글 스프레드 시트로 리디렉션하는
현재 Excel에서 내 보낸 Excel 파일을보기 위해 컴퓨터에 Excel이 설치되어 있지 않은 경우 사용자에게 메시지를 표시하고 있습니다.이 코드를 사용하여 내 보낸 파일을 보려면 Google 스프레드 시트로 리디렉션하여이를 바꾸고 싶습니다. 사용자에게 메시지를 표시합니다.
if (MessageBox.Show(
"Data Exported to File " + strFileName +
" at location MyDocuments. Do yo want to view the saved file?",
"Work Done",
MessageBoxButton.YesNo,
MessageBoxImage.Information) == MessageBoxResult.Yes)
{
Type officeType = Type.GetTypeFromProgID("Excel.Application");
if (officeType == null)
{
MessageBox.Show("Please Install MS Excel to view this file", "Liquidity Risk Management");
}
else
{
olx.visible=true;
}
}