WinForms윈폼 스프레드 데이터 셋팅 후 출력?
페이지 정보
작성자 오현진 작성일 2023-01-17 16:58 조회 461회 댓글 0건본문
관련링크
스프레드에 데이터 셋팅하고 해당 스프레드를 출력하는데 이런 데이터가 뜬다고 합니다.
다만 항시 뜨는게 아니라 랜덤으로 뜬다고 하는데 어떤 경우에 발생하는지 알고싶습니다.
출력방식은 대략
this.ActiveSheet.PrintInfo.JobName = "PRINT TEST";
Util.WriteLog("NSPREAD # this.ActiveSheet");
SheetView svSheet = this.ActiveSheet;
SheetView svNew = new SheetView();
foreach (SheetView sv in this.Sheets)
{
info.ColStart = 0;
info.ColEnd = 0;
info.RowStart = 0;
info.RowEnd = 0;
// 프린트 가로, 세로 설정
info.Orientation = setOption.orientation;
//info.Orientation = PrintOrientation.Portrait;
if (info.ColStart > 0 || info.ColEnd > 0 || info.RowStart > 0 || info.RowEnd > 0)
{
if (info.ColStart != info.ColEnd || info.RowStart != info.RowEnd)
{
info.PrintType = PrintType.CellRange;
}
else
{
info.PrintType = setOption.pageRange;
}
}
else
{
info.PrintType = setOption.pageRange;
}
-----프린트 ;info셋팅 중략---------
// 프린트 확대/축소
info.ZoomFactor = setOption.ZoomFactor;
svNew.PrintInfo = info;
this.PrintSheet(svNew);
svNew.RowCount = oldRowCount;
}
}
이와같은 방식으로 진행됩니다.
위 에러팝업이 스프레드에 데이터 셋팅시에 발생하는지, 출력시에 발생하는지
전자라면 무엇이 문제인지 알고싶습니다.감사합니다.
댓글목록
등록된 댓글이 없습니다.