문제

How do you go about setting up a new EPiServer website? I can't seem to get from an empty visual studio project to a deployed website without having to fix all kinds of file path and referencing issues.

If you have a smooth process for creating an EPiServer site from scratch and deploying it to a web server... I'd love to hear it!

도움이 되었습니까?

해결책

2007 년 인쇄 옵션이 없기 때문에 2007 년 에이 작업이 작동하는지 모르겠습니다. 액세스 할 수있는 브라우저 인쇄 옵션을 사용해야합니다.

개방형시 새 브라우저를 인쇄 할 수있는 재귀 메소드를 만들 수 있습니다 (브라우저가 인쇄를 처리하는 것과 동일한 방식으로).

WebPart는 단추를 만듭니다. 버튼 ...을 클릭하면 웹 페이지를 스캔하여 선택한 문서에 대한 모든 URL을 저장하는 배열을 만들 수 있습니다. 선택한 문서의 모든 URL을 저장할 수있는 배열을 만들 수 있습니다. 항목 및이 메서드로 URL을 전달합니다.

private void PrintHelpPage(string UrlDocument)
{
    // Create a WebBrowser instance. 
    WebBrowser webBrowserForPrinting = new WebBrowser();

    // Add an event handler that prints the document after it loads.
    webBrowserForPrinting.DocumentCompleted +=
        new WebBrowserDocumentCompletedEventHandler(PrintDocument);

    // Set the Url property to load the document.
    webBrowserForPrinting.Url = new Uri(@UrlDocument);
}

private void PrintDocument(object sender,
    WebBrowserDocumentCompletedEventArgs e)
{
    // Print the document now that it is fully loaded.
    ((WebBrowser)sender).Print();

    // Dispose the WebBrowser now that the task is complete. 
    ((WebBrowser)sender).Dispose();
}
.

URLDocument는 반복하는 배열 루프 내에서 전달하는 URL입니다!

인쇄 스풀을 채우면 한 번에 모든 것을 통해 실행될 것인지 모르겠지만 한 번에 하나씩 인쇄 스풀을 채취합니다. 나의 추측은 모두 한 번에 있지만 명령이 인쇄 스풀로 보내지 자마자 닫아야합니다.

또는 페이지 내의 컨트롤을 반복 할 수있는 경우 확인란의 제어가 체크되고 값을 전달하는지 확인하십시오.이 값은 모든 검사 된 항목을 반복합니다.

private void btnAdd_Click(object sender, EventArgs e) 
{ 
     foreach(Control c in Page.Controls)
     {
           if (c is Checkbox)
           {
               CheckBox cb = c as CheckBox;
               if (cb.Checked == true)
               {
                   PrintHelpPage(cb.Text)
               }
           }
     }
}
.

위의 코드는 실수가 있으므로 작동하지 않지만 원하는대로 거의 작동합니다! Checkbox 텍스트가 값이 아니라 위의 코드는 어떻게 해야하는지 보여줄 것입니다. 또는 내가 말했듯이, 위의 동일한 방법 내에서 배열 루프를 통해 수행하십시오 (이벤트를 클릭하십시오).

http://msdn.microsoft.com. /en-us/library/b0wes9a3(v=vs.90).aspx

다른 팁

이것은 각 바이트의 정수 값을 인쇄합니다.이 값은 Base 64에서 인쇄 할 요청보다 조금 더 이해할 수 있습니다.

arr = []

f = File.new("/tmp/test.txt")
 # "This is a test sentence.\n"

f.seek(7)
 # => 0 

arr << f.readbyte
 # => [32]    (The space between 'is' and 'a'.)

f.seek(-1, IO::SEEK_END)
 # => 0 

arr << f.readbyte
 # => [32, 10]    (The newline at the end of the file.)
.

I generally use the Visual Studio Integration for EPiServer. Create a new EPiServer project and starts coding. When the skeleton is ready to go I move the database to a central server, update the connection strings, move the VPP folder to a shared server and update the paths in web.config to it. Then it's time to put the code in source control and a project is started.

When time comes for initial deployment to test / production I copy the database and VPP to the server and use Visual Studio's deploy mechanism to compile and copy the binaries + other files needed (before this, I naturally install the core episerver installation on the target server). Then it's just a little IIS configuration and things are working.

Future updates after that involves deploying from visual studio and export / import new/change pagetypes, etc.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top