데이터 가져 오기를 위해 PCL (Printer Control Language)이 포함 된 이전 메인 프레임 텍스트 파일을 긁어 내야합니다. 메인 프레임 기능을 변경하는 것은 옵션이 아닙니다. 출력물에는 제품 판매 정보가 들어 있으며 계층 형 출력이 있습니다.PCL이 포함 된 텍스트 파일 가져 오기 및 구문 분석 : ASP.NET C# 기술 제안?
내 희망은 SQL Server Integration Service 가져 오기 (SSIS)를 설치했다는 것입니다. 궁극적으로 이것은 SQL 2005 데이터베이스가있는 데이터 가져 오기 ASP.NET MVC 3 웹 사이트이므로 SSIS를 피할 수 있습니다. 현재 C# ASP.NET MVC 3 웹 사이트를 구축하므로 관련 기술을 사용하여 관리 할 수 있어야합니다.
사람은 C# 또는 SSIS에서 (정규 표현식 같은) 텍스트 패턴 유용한 데이터 가져 오기에 다시 텍스트 보고서를 구문 분석에 성공 했습니까? 상태 디자인 패턴을 사용하는 예제가 있습니까? 어떻게 텍스트 파일을로드하고 C#에서 n 번째 열을하는 방법 :나는 대답의 작은 부분을 보여주는 these answers을 많이 찾을 수 있습니다. 이것은 더 복잡합니다. 내가 가지고있는 가져 오기 상태를 기반으로 한 패턴으로 각 라인 유형을 식별해야합니다. 선반 소프트웨어는 더 좋을 것입니다.
텍스트 파일 예 :
this part may be a header for the page which needs skipped
this part may be a header for the page which needs skipped
this part may be a header for the page which needs skipped
first line containing prices
second line containing product description for the first line
third line containing a related product (listing all flavors)
fourth line containing a description for the third line
[third and forth may repeat]
[product set summary line]
[ repeat for next product]
this part may be a footer for the page that needs skipped
this part may be a footer for the page that needs skipped
at any point, the products will span between pages,
having header and footer lines between product data.