Author: 떠돌이개발자

Android

[안드로이드] NavigationView에서 headerLayout 접근하는 방법

NavigationView에서 headerLayout 설정방법 app:headerLayout 속성을 사용하여 접근가능하다. nav_header_main.xml 파일 내용 < ?xml version="1.0" encoding="utf-8"?> < LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="82dp" android:background="@drawable/side_nav_bar" android:gravity="bottom" android:orientation="vertical" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin"...
Android

Exit with code 1 due to network error: RemoteHostClosedError

Rotativa PDF 생성 기능을 사용하던 중에 발생된 오류이다. System.Exception:Error:Failed loading pagehttps://test.com/Survey/ReportPrint?enckey=b975eb3fb2b42d7c86d0fa1b6c3a1a9f&date=2019-05-28 sometimes it will work just to ignore this error with –load-error-handling ignore) Exit with code 1 due to network error: RemoteHostClosedError 위치 :Rotitiva.WkhtmltopdfDriver.Convert(String wkhtmltopdfPath, String switches, String html) ………………. [백엔드 코드]string CustomOpton = string.Empty; string fileName = string.Empty; string fileName2 = string.Empty; Rotativa.UrlAsPdf actionPDF; byte[] PDFData = null;    CustomOpton = “–print-media-type  –javascript-delay 5000”; fileName =  “보고서_” + DateTime.Now.Date.ToString(“yyyy-MM-dd”) + “_” +  “.pdf”; //사용자페이지를 호출actionPDF = new Rotativa.UrlAsPdf(Config.GetValue(“RealURL”) + “/Survey/ReportPrint?enckey=” + userInfoData.EncHraPK + “&date=” + userInfoData.HraDate) {    ...
error: Content is protected !!