Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1 from kppullin/basicPrinting

Added basic printing support
  • Loading branch information...
commit 0350f11ba3920b80876c52f175d4fe2350050e03 2 parents 1e38df4 + b6b64b4
@ataranto ataranto authored
View
7 CefSharp/CefFormsWebBrowser.cpp
@@ -56,6 +56,13 @@ namespace CefSharp
}
}
+ void CefFormsWebBrowser::Print()
+ {
+ WaitForInitialized();
+
+ _clientAdapter->GetCefBrowser()->GetMainFrame()->Print();
+ }
+
String^ CefFormsWebBrowser::RunScript(String^ script, String^ scriptUrl, int startLine)
{
WaitForInitialized();
View
1  CefSharp/CefFormsWebBrowser.h
@@ -83,6 +83,7 @@ namespace CefSharp
void Forward();
void Reload();
void Reload(bool ignoreCache);
+ void Print();
String^ RunScript(String^ script, String^ scriptUrl, int startLine);
String^ RunScript(String^ script, String^ scriptUrl, int startLine, int timeout);
View
7 CefSharp/CefWpfWebBrowser.cpp
@@ -64,6 +64,13 @@ namespace CefSharp
}
}
+ void CefWpfWebBrowser::Print()
+ {
+ WaitForInitialized();
+
+ _clientAdapter->GetCefBrowser()->GetMainFrame()->Print();
+ }
+
String^ CefWpfWebBrowser::RunScript(String^ script, String^ scriptUrl, int startLine)
{
WaitForInitialized();
View
1  CefSharp/CefWpfWebBrowser.h
@@ -106,6 +106,7 @@ namespace CefSharp
void Forward();
void Reload();
void Reload(bool ignoreCache);
+ void Print();
String^ RunScript(String^ script, String^ scriptUrl, int startLine);
String^ RunScript(String^ script, String^ scriptUrl, int startLine, int timeout);

0 comments on commit 0350f11

Please sign in to comment.
Something went wrong with that request. Please try again.