PK
WH WordsProcessingForSilverlight/PK
WHPm ? WordsProcessingForSilverlight/WordsProcessingForSilverlight.sln
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WordsProcessingRegisterFontsFromServiceDemo", "WordsProcessingRegisterFontsFromServiceDemo\WordsProcessingRegisterFontsFromServiceDemo.csproj", "{732DB0E6-2A4C-4B3F-8176-947180A718FB}"
ProjectSection(ProjectDependencies) = postProject
{EC9CDA9F-C2D7-47F5-86F1-E9753A416F14} = {EC9CDA9F-C2D7-47F5-86F1-E9753A416F14}
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WordsProcessingRegisterFontsFromServiceDemo.Web", "WordsProcessingRegisterFontsFromServiceDemo.Web\WordsProcessingRegisterFontsFromServiceDemo.Web.csproj", "{EC9CDA9F-C2D7-47F5-86F1-E9753A416F14}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{732DB0E6-2A4C-4B3F-8176-947180A718FB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{732DB0E6-2A4C-4B3F-8176-947180A718FB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{732DB0E6-2A4C-4B3F-8176-947180A718FB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{732DB0E6-2A4C-4B3F-8176-947180A718FB}.Release|Any CPU.Build.0 = Release|Any CPU
{EC9CDA9F-C2D7-47F5-86F1-E9753A416F14}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EC9CDA9F-C2D7-47F5-86F1-E9753A416F14}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EC9CDA9F-C2D7-47F5-86F1-E9753A416F14}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EC9CDA9F-C2D7-47F5-86F1-E9753A416F14}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
PK
WH J WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo/PK
WHnF F R WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo/App.xaml
PK
WH3 U WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo/App.xaml.csusing System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
namespace WordsProcessingRegisterFontsFromServiceDemo
{
public partial class App : Application
{
public App()
{
this.Startup += this.Application_Startup;
this.Exit += this.Application_Exit;
this.UnhandledException += this.Application_UnhandledException;
InitializeComponent();
}
private void Application_Startup(object sender, StartupEventArgs e)
{
this.RootVisual = new MainPage();
}
private void Application_Exit(object sender, EventArgs e)
{
}
private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
{
// If the app is running outside of the debugger then report the exception using
// the browser's exception mechanism. On IE this will display it a yellow alert
// icon in the status bar and Firefox will display a script error.
if (!System.Diagnostics.Debugger.IsAttached)
{
// NOTE: This will allow the application to continue running after an exception has been thrown
// but not handled.
// For production applications this error handling should be replaced with something that will
// report the error to the website and stop the application.
e.Handled = true;
Deployment.Current.Dispatcher.BeginInvoke(delegate { ReportErrorToDOM(e); });
}
}
private void ReportErrorToDOM(ApplicationUnhandledExceptionEventArgs e)
{
try
{
string errorMsg = e.ExceptionObject.Message + e.ExceptionObject.StackTrace;
errorMsg = errorMsg.Replace('"', '\'').Replace("\r\n", @"\n");
System.Windows.Browser.HtmlPage.Window.Eval("throw new Error(\"Unhandled Error in Silverlight Application " + errorMsg + "\");");
}
catch (Exception)
{
}
}
}
}
PK
WH Y WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo/Generated_Code/PK
WH`( WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo/Generated_Code/WordsProcessingRegisterFontsFromServiceDemo.Web.g.cs//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version:4.0.30319.34014
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
namespace WordsProcessingRegisterFontsFromServiceDemo
{
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.ServiceModel.DomainServices;
using System.ServiceModel.DomainServices.Client;
using System.ServiceModel.DomainServices.Client.ApplicationServices;
///
/// Context for the RIA application.
///
///
/// This context extends the base to make application services and types available
/// for consumption from code and xaml.
///
public sealed partial class WebContext : WebContextBase
{
#region Extensibility Method Definitions
///
/// This method is invoked from the constructor once initialization is complete and
/// can be used for further object setup.
///
partial void OnCreated();
#endregion
///
/// Initializes a new instance of the WebContext class.
///
public WebContext()
{
this.OnCreated();
}
///
/// Gets the context that is registered as a lifetime object with the current application.
///
/// is thrown if there is no current application,
/// no contexts have been added, or more than one context has been added.
///
///
public new static WebContext Current
{
get
{
return ((WebContext)(WebContextBase.Current));
}
}
}
}
PK
WH5 W WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo/MainPage.xaml
PK
iWH[jP P Z WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo/MainPage.xaml.csusing System;
using System.IO;
using System.Windows;
using System.Windows.Controls;
using WordsProcessingRegisterFontsFromServiceDemo.WordsProcessingPdfServiceReference;
namespace WordsProcessingRegisterFontsFromServiceDemo
{
public partial class MainPage : UserControl
{
private readonly WordsProcessingPdfServiceClient serviceClient;
private byte[] fileBytes = null;
public MainPage()
{
InitializeComponent();
this.serviceClient = new WordsProcessingPdfServiceClient();
this.serviceClient.GetPdfWithGillSansMTCompleted += ServiceClientGetPdfWithGillSansMTCompleted;
this.serviceClient.GetPdfWithGillSansMTAsync();
}
private void ServiceClientGetPdfWithGillSansMTCompleted(object sender, GetPdfWithGillSansMTCompletedEventArgs e)
{
this.fileBytes = e.Result;
}
private void Button_Click(object sender, System.Windows.RoutedEventArgs e)
{
if (fileBytes == null)
{
MessageBox.Show("Could not get export file!");
}
else
{
SaveFileDialog dialog = new SaveFileDialog();
dialog.Filter = "PDF files (*.pdf)|*.pdf";
if (dialog.ShowDialog() == true)
{
using (Stream stream = dialog.OpenFile())
{
stream.Write(fileBytes, 0, fileBytes.Length);
}
}
}
}
}
}
PK
WH U WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo/Properties/PK
WH d WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo/Properties/AppManifest.xml
PK
WH(c: d WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo/Properties/AssemblyInfo.csusing System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("WordsProcessingRegisterFontsFromServiceDemo")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("WordsProcessingRegisterFontsFromServiceDemo")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("732db0e6-2a4c-4b3f-8176-947180a718fb")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
PK
׀WH ] WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo/Service References/PK
WH WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo/Service References/WordsProcessingPdfServiceReference/PK
׀WH(u WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo/Service References/WordsProcessingPdfServiceReference/configuration.svcinfo
PK
׀WH_ _ WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo/Service References/WordsProcessingPdfServiceReference/configuration91.svcinfo
CustomBinding_WordsProcessingPdfService
System.ServiceModel.Configuration.BinaryMessageEncodingElement
64
16
2048
System.ServiceModel.Configuration.XmlDictionaryReaderQuotasElement
0
0
0
0
0
None
System.ServiceModel.Configuration.HttpTransportElement
False
524288
2147483647
False
00:00:00
Anonymous
False
True
StrongWildcard
True
2147483647
0
System.ServiceModel.Configuration.HttpMessageHandlerFactoryElement
(Collection)
Anonymous
Buffered
False
True
System.Security.Authentication.ExtendedProtection.Configuration.ExtendedProtectionPolicyElement
Never
TransportSelected
(Collection)
System.ServiceModel.Configuration.WebSocketTransportSettingsElement
Never
False
00:00:00
False
0
../WordsProcessingPdfService.svc
customBinding
CustomBinding_WordsProcessingPdfService
WordsProcessingPdfServiceReference.WordsProcessingPdfService
System.ServiceModel.Configuration.AddressHeaderCollectionElement
<Header />
System.ServiceModel.Configuration.IdentityElement
System.ServiceModel.Configuration.UserPrincipalNameElement
System.ServiceModel.Configuration.ServicePrincipalNameElement
System.ServiceModel.Configuration.DnsElement
System.ServiceModel.Configuration.RsaElement
System.ServiceModel.Configuration.CertificateElement
System.ServiceModel.Configuration.CertificateReferenceElement
My
LocalMachine
FindBySubjectDistinguishedName
False
CustomBinding_WordsProcessingPdfService
PK
WHB4 4 WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo/Service References/WordsProcessingPdfServiceReference/Reference.cs//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version:4.0.30319.34014
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
//
// This code was auto-generated by Microsoft.Silverlight.ServiceReference, version 5.0.61118.0
//
namespace WordsProcessingRegisterFontsFromServiceDemo.WordsProcessingPdfServiceReference {
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
[System.ServiceModel.ServiceContractAttribute(Namespace="", ConfigurationName="WordsProcessingPdfServiceReference.WordsProcessingPdfService")]
public interface WordsProcessingPdfService {
[System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="urn:WordsProcessingPdfService/GetPdfWithGillSansMT", ReplyAction="urn:WordsProcessingPdfService/GetPdfWithGillSansMTResponse")]
System.IAsyncResult BeginGetPdfWithGillSansMT(System.AsyncCallback callback, object asyncState);
byte[] EndGetPdfWithGillSansMT(System.IAsyncResult result);
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
public interface WordsProcessingPdfServiceChannel : WordsProcessingRegisterFontsFromServiceDemo.WordsProcessingPdfServiceReference.WordsProcessingPdfService, System.ServiceModel.IClientChannel {
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
public partial class GetPdfWithGillSansMTCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
public GetPdfWithGillSansMTCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
public byte[] Result {
get {
base.RaiseExceptionIfNecessary();
return ((byte[])(this.results[0]));
}
}
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
public partial class WordsProcessingPdfServiceClient : System.ServiceModel.ClientBase, WordsProcessingRegisterFontsFromServiceDemo.WordsProcessingPdfServiceReference.WordsProcessingPdfService {
private BeginOperationDelegate onBeginGetPdfWithGillSansMTDelegate;
private EndOperationDelegate onEndGetPdfWithGillSansMTDelegate;
private System.Threading.SendOrPostCallback onGetPdfWithGillSansMTCompletedDelegate;
private BeginOperationDelegate onBeginOpenDelegate;
private EndOperationDelegate onEndOpenDelegate;
private System.Threading.SendOrPostCallback onOpenCompletedDelegate;
private BeginOperationDelegate onBeginCloseDelegate;
private EndOperationDelegate onEndCloseDelegate;
private System.Threading.SendOrPostCallback onCloseCompletedDelegate;
public WordsProcessingPdfServiceClient() {
}
public WordsProcessingPdfServiceClient(string endpointConfigurationName) :
base(endpointConfigurationName) {
}
public WordsProcessingPdfServiceClient(string endpointConfigurationName, string remoteAddress) :
base(endpointConfigurationName, remoteAddress) {
}
public WordsProcessingPdfServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
base(endpointConfigurationName, remoteAddress) {
}
public WordsProcessingPdfServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
base(binding, remoteAddress) {
}
public System.Net.CookieContainer CookieContainer {
get {
System.ServiceModel.Channels.IHttpCookieContainerManager httpCookieContainerManager = this.InnerChannel.GetProperty();
if ((httpCookieContainerManager != null)) {
return httpCookieContainerManager.CookieContainer;
}
else {
return null;
}
}
set {
System.ServiceModel.Channels.IHttpCookieContainerManager httpCookieContainerManager = this.InnerChannel.GetProperty();
if ((httpCookieContainerManager != null)) {
httpCookieContainerManager.CookieContainer = value;
}
else {
throw new System.InvalidOperationException("Unable to set the CookieContainer. Please make sure the binding contains an HttpC" +
"ookieContainerBindingElement.");
}
}
}
public event System.EventHandler GetPdfWithGillSansMTCompleted;
public event System.EventHandler OpenCompleted;
public event System.EventHandler CloseCompleted;
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
System.IAsyncResult WordsProcessingRegisterFontsFromServiceDemo.WordsProcessingPdfServiceReference.WordsProcessingPdfService.BeginGetPdfWithGillSansMT(System.AsyncCallback callback, object asyncState) {
return base.Channel.BeginGetPdfWithGillSansMT(callback, asyncState);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
byte[] WordsProcessingRegisterFontsFromServiceDemo.WordsProcessingPdfServiceReference.WordsProcessingPdfService.EndGetPdfWithGillSansMT(System.IAsyncResult result) {
return base.Channel.EndGetPdfWithGillSansMT(result);
}
private System.IAsyncResult OnBeginGetPdfWithGillSansMT(object[] inValues, System.AsyncCallback callback, object asyncState) {
return ((WordsProcessingRegisterFontsFromServiceDemo.WordsProcessingPdfServiceReference.WordsProcessingPdfService)(this)).BeginGetPdfWithGillSansMT(callback, asyncState);
}
private object[] OnEndGetPdfWithGillSansMT(System.IAsyncResult result) {
byte[] retVal = ((WordsProcessingRegisterFontsFromServiceDemo.WordsProcessingPdfServiceReference.WordsProcessingPdfService)(this)).EndGetPdfWithGillSansMT(result);
return new object[] {
retVal};
}
private void OnGetPdfWithGillSansMTCompleted(object state) {
if ((this.GetPdfWithGillSansMTCompleted != null)) {
InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
this.GetPdfWithGillSansMTCompleted(this, new GetPdfWithGillSansMTCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
}
}
public void GetPdfWithGillSansMTAsync() {
this.GetPdfWithGillSansMTAsync(null);
}
public void GetPdfWithGillSansMTAsync(object userState) {
if ((this.onBeginGetPdfWithGillSansMTDelegate == null)) {
this.onBeginGetPdfWithGillSansMTDelegate = new BeginOperationDelegate(this.OnBeginGetPdfWithGillSansMT);
}
if ((this.onEndGetPdfWithGillSansMTDelegate == null)) {
this.onEndGetPdfWithGillSansMTDelegate = new EndOperationDelegate(this.OnEndGetPdfWithGillSansMT);
}
if ((this.onGetPdfWithGillSansMTCompletedDelegate == null)) {
this.onGetPdfWithGillSansMTCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetPdfWithGillSansMTCompleted);
}
base.InvokeAsync(this.onBeginGetPdfWithGillSansMTDelegate, null, this.onEndGetPdfWithGillSansMTDelegate, this.onGetPdfWithGillSansMTCompletedDelegate, userState);
}
private System.IAsyncResult OnBeginOpen(object[] inValues, System.AsyncCallback callback, object asyncState) {
return ((System.ServiceModel.ICommunicationObject)(this)).BeginOpen(callback, asyncState);
}
private object[] OnEndOpen(System.IAsyncResult result) {
((System.ServiceModel.ICommunicationObject)(this)).EndOpen(result);
return null;
}
private void OnOpenCompleted(object state) {
if ((this.OpenCompleted != null)) {
InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
this.OpenCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
}
}
public void OpenAsync() {
this.OpenAsync(null);
}
public void OpenAsync(object userState) {
if ((this.onBeginOpenDelegate == null)) {
this.onBeginOpenDelegate = new BeginOperationDelegate(this.OnBeginOpen);
}
if ((this.onEndOpenDelegate == null)) {
this.onEndOpenDelegate = new EndOperationDelegate(this.OnEndOpen);
}
if ((this.onOpenCompletedDelegate == null)) {
this.onOpenCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnOpenCompleted);
}
base.InvokeAsync(this.onBeginOpenDelegate, null, this.onEndOpenDelegate, this.onOpenCompletedDelegate, userState);
}
private System.IAsyncResult OnBeginClose(object[] inValues, System.AsyncCallback callback, object asyncState) {
return ((System.ServiceModel.ICommunicationObject)(this)).BeginClose(callback, asyncState);
}
private object[] OnEndClose(System.IAsyncResult result) {
((System.ServiceModel.ICommunicationObject)(this)).EndClose(result);
return null;
}
private void OnCloseCompleted(object state) {
if ((this.CloseCompleted != null)) {
InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
this.CloseCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
}
}
public void CloseAsync() {
this.CloseAsync(null);
}
public void CloseAsync(object userState) {
if ((this.onBeginCloseDelegate == null)) {
this.onBeginCloseDelegate = new BeginOperationDelegate(this.OnBeginClose);
}
if ((this.onEndCloseDelegate == null)) {
this.onEndCloseDelegate = new EndOperationDelegate(this.OnEndClose);
}
if ((this.onCloseCompletedDelegate == null)) {
this.onCloseCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnCloseCompleted);
}
base.InvokeAsync(this.onBeginCloseDelegate, null, this.onEndCloseDelegate, this.onCloseCompletedDelegate, userState);
}
protected override WordsProcessingRegisterFontsFromServiceDemo.WordsProcessingPdfServiceReference.WordsProcessingPdfService CreateChannel() {
return new WordsProcessingPdfServiceClientChannel(this);
}
private class WordsProcessingPdfServiceClientChannel : ChannelBase, WordsProcessingRegisterFontsFromServiceDemo.WordsProcessingPdfServiceReference.WordsProcessingPdfService {
public WordsProcessingPdfServiceClientChannel(System.ServiceModel.ClientBase client) :
base(client) {
}
public System.IAsyncResult BeginGetPdfWithGillSansMT(System.AsyncCallback callback, object asyncState) {
object[] _args = new object[0];
System.IAsyncResult _result = base.BeginInvoke("GetPdfWithGillSansMT", _args, callback, asyncState);
return _result;
}
public byte[] EndGetPdfWithGillSansMT(System.IAsyncResult result) {
object[] _args = new object[0];
byte[] _result = ((byte[])(base.EndInvoke("GetPdfWithGillSansMT", _args, result)));
return _result;
}
}
}
}
PK
׀WH,)y
WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo/Service References/WordsProcessingPdfServiceReference/Reference.svcmap
true
true
false
false
false
false
Auto
true
true
PK
׀WHi& WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo/Service References/WordsProcessingPdfServiceReference/WordsProcessingPdfService.disco
PK
׀WH_3o WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo/Service References/WordsProcessingPdfServiceReference/WordsProcessingPdfService.wsdl
http://localhost:50783/WordsProcessingPdfService.svc
PK
׀WHy WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo/Service References/WordsProcessingPdfServiceReference/WordsProcessingPdfService.xsd
PK
׀WH9 9 WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo/Service References/WordsProcessingPdfServiceReference/WordsProcessingPdfService1.wsdl
PK
׀WHʸ WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo/Service References/WordsProcessingPdfServiceReference/WordsProcessingPdfService1.xsd
PK
WHCT' ' h WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo/ServiceReferences.ClientConfig
PK
WH+>Ȏ | WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo/WordsProcessingRegisterFontsFromServiceDemo.csproj
Debug
AnyCPU
8.0.50727
2.0
{732DB0E6-2A4C-4B3F-8176-947180A718FB}
{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}
Library
Properties
WordsProcessingRegisterFontsFromServiceDemo
WordsProcessingRegisterFontsFromServiceDemo
Silverlight
v5.0
$(TargetFrameworkVersion)
true
true
true
WordsProcessingRegisterFontsFromServiceDemo.xap
Properties\AppManifest.xml
WordsProcessingRegisterFontsFromServiceDemo.App
WordsProcessingRegisterFontsFromServiceDemoTestPage.html
true
true
false
Properties\OutOfBrowserSettings.xml
false
true
..\WordsProcessingRegisterFontsFromServiceDemo.Web\WordsProcessingRegisterFontsFromServiceDemo.Web.csproj
v3.5
true
full
false
Bin\Debug
DEBUG;TRACE;SILVERLIGHT
true
true
prompt
4
pdbonly
true
Bin\Release
TRACE;SILVERLIGHT
true
true
prompt
4
$(TargetFrameworkDirectory)System.Core.dll
App.xaml
MainPage.xaml
True
True
Reference.svcmap
Designer
MSBuild:Compile
Designer
MSBuild:Compile
Designer
Designer
WCF Proxy Generator
Reference.cs
PK
WHh.v v WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo/WordsProcessingRegisterFontsFromServiceDemo.csproj.user
DynamicPage
True
False
False
True
True
PK
WH N WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo.Web/PK
WH Y WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo.Web/Properties/PK
WHE h WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo.Web/Properties/AssemblyInfo.csusing System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("WordsProcessingRegisterFontsFromServiceDemo.Web")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("WordsProcessingRegisterFontsFromServiceDemo.Web")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("00531059-2fd2-43f6-9f7b-3e09a0013119")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
PK
WHUP \ WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo.Web/Silverlight.js//v2.0.30511.0
if(!window.Silverlight)window.Silverlight={};Silverlight._silverlightCount=0;Silverlight.__onSilverlightInstalledCalled=false;Silverlight.fwlinkRoot="http://go2.microsoft.com/fwlink/?LinkID=";Silverlight.__installationEventFired=false;Silverlight.onGetSilverlight=null;Silverlight.onSilverlightInstalled=function(){window.location.reload(false)};Silverlight.isInstalled=function(b){if(b==undefined)b=null;var a=false,m=null;try{var i=null,j=false;if(window.ActiveXObject)try{i=new ActiveXObject("AgControl.AgControl");if(b===null)a=true;else if(i.IsVersionSupported(b))a=true;i=null}catch(l){j=true}else j=true;if(j){var k=navigator.plugins["Silverlight Plug-In"];if(k)if(b===null)a=true;else{var h=k.description;if(h==="1.0.30226.2")h="2.0.30226.2";var c=h.split(".");while(c.length>3)c.pop();while(c.length<4)c.push(0);var e=b.split(".");while(e.length>4)e.pop();var d,g,f=0;do{d=parseInt(e[f]);g=parseInt(c[f]);f++}while(f");delete a.id;delete a.width;delete a.height;for(var c in a)if(a[c])b.push('');b.push("");return b.join("")};Silverlight.createObjectEx=function(b){var a=b,c=Silverlight.createObject(a.source,a.parentElement,a.id,a.properties,a.events,a.initParams,a.context);if(a.parentElement==null)return c};Silverlight.buildPromptHTML=function(b){var a="",d=Silverlight.fwlinkRoot,c=b.version;if(b.alt)a=b.alt;else{if(!c)c="";a="";a=a.replace("{1}",c);a=a.replace("{2}",d+"108181")}return a};Silverlight.getSilverlight=function(e){if(Silverlight.onGetSilverlight)Silverlight.onGetSilverlight();var b="",a=String(e).split(".");if(a.length>1){var c=parseInt(a[0]);if(isNaN(c)||c<2)b="1.0";else b=a[0]+"."+a[1]}var d="";if(b.match(/^\d+\056\d+$/))d="&v="+b;Silverlight.followFWLink("149156"+d)};Silverlight.followFWLink=function(a){top.location=Silverlight.fwlinkRoot+String(a)};Silverlight.HtmlAttributeEncode=function(c){var a,b="";if(c==null)return null;for(var d=0;d96&&a<123||a>64&&a<91||a>43&&a<58&&a!=47||a==95)b=b+String.fromCharCode(a);else b=b+""+a+";"}return b};Silverlight.default_error_handler=function(e,b){var d,c=b.ErrorType;d=b.ErrorCode;var a="\nSilverlight error message \n";a+="ErrorCode: "+d+"\n";a+="ErrorType: "+c+" \n";a+="Message: "+b.ErrorMessage+" \n";if(c=="ParserError"){a+="XamlFile: "+b.xamlFile+" \n";a+="Line: "+b.lineNumber+" \n";a+="Position: "+b.charPosition+" \n"}else if(c=="RuntimeError"){if(b.lineNumber!=0){a+="Line: "+b.lineNumber+" \n";a+="Position: "+b.charPosition+" \n"}a+="MethodName: "+b.methodName+" \n"}alert(a)};Silverlight.__cleanup=function(){for(var a=Silverlight._silverlightCount-1;a>=0;a--)window["__slEvent"+a]=null;Silverlight._silverlightCount=0;if(window.removeEventListener)window.removeEventListener("unload",Silverlight.__cleanup,false);else window.detachEvent("onunload",Silverlight.__cleanup)};Silverlight.__getHandlerName=function(b){var a="";if(typeof b=="string")a=b;else if(typeof b=="function"){if(Silverlight._silverlightCount==0)if(window.addEventListener)window.addEventListener("onunload",Silverlight.__cleanup,false);else window.attachEvent("onunload",Silverlight.__cleanup);var c=Silverlight._silverlightCount++;a="__slEvent"+c;window[a]=b}else a=null;return a};Silverlight.onRequiredVersionAvailable=function(){};Silverlight.onRestartRequired=function(){};Silverlight.onUpgradeRequired=function(){};Silverlight.onInstallRequired=function(){};Silverlight.IsVersionAvailableOnError=function(d,a){var b=false;try{if(a.ErrorCode==8001&&!Silverlight.__installationEventFired){Silverlight.onUpgradeRequired();Silverlight.__installationEventFired=true}else if(a.ErrorCode==8002&&!Silverlight.__installationEventFired){Silverlight.onRestartRequired();Silverlight.__installationEventFired=true}else if(a.ErrorCode==5014||a.ErrorCode==2106){if(Silverlight.__verifySilverlight2UpgradeSuccess(a.getHost()))b=true}else b=true}catch(c){}return b};Silverlight.IsVersionAvailableOnLoad=function(b){var a=false;try{if(Silverlight.__verifySilverlight2UpgradeSuccess(b.getHost()))a=true}catch(c){}return a};Silverlight.__verifySilverlight2UpgradeSuccess=function(d){var c=false,b="2.0.31005",a=null;try{if(d.IsVersionSupported(b+".99")){a=Silverlight.onRequiredVersionAvailable;c=true}else if(d.IsVersionSupported(b+".0"))a=Silverlight.onRestartRequired;else a=Silverlight.onUpgradeRequired;if(a&&!Silverlight.__installationEventFired){a();Silverlight.__installationEventFired=true}}catch(e){}return c}PK
XWH?a X WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo.Web/Web.config
PK
WHe' ^ WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo.Web/Web.Debug.config
PK
WHcP P ` WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo.Web/Web.Release.config
PK
XWH)+? k WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo.Web/WordsProcessingPdfService.svc<%@ ServiceHost Language="C#" Debug="true" Service="WordsProcessingRegisterFontsFromServiceDemo.Web.WordsProcessingPdfService" CodeBehind="WordsProcessingPdfService.svc.cs" %>
PK
WHJ9e n WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo.Web/WordsProcessingPdfService.svc.csusing System;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Activation;
using Telerik.Windows.Documents.Flow.FormatProviders.Pdf;
using Telerik.Windows.Documents.Flow.Model;
using Telerik.Windows.Documents.Flow.Model.Editing;
using Telerik.Windows.Documents.Spreadsheet.Model;
namespace WordsProcessingRegisterFontsFromServiceDemo.Web
{
[ServiceContract(Namespace = "")]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class WordsProcessingPdfService
{
[OperationContract]
public byte[] GetPdfWithGillSansMT()
{
RadFlowDocument document = this.CreateSampleDocumentWithGillSansMT();
byte[] fileBytes = new PdfFormatProvider().Export(document);
return fileBytes;
}
private RadFlowDocument CreateSampleDocumentWithGillSansMT()
{
RadFlowDocument document = new RadFlowDocument();
RadFlowDocumentEditor editor = new RadFlowDocumentEditor(document);
editor.InsertLine("This text uses default font family.");
editor.InsertInline(new Run(document)
{
Text = "This text uses Gill Sans MT font family.",
FontFamily = new ThemableFontFamily("Gill Sans MT")
});
return document;
}
}
}
PK
WH WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo.Web/WordsProcessingRegisterFontsFromServiceDemo.Web.csproj
Debug
AnyCPU
2.0
{EC9CDA9F-C2D7-47F5-86F1-E9753A416F14}
{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}
Library
Properties
WordsProcessingRegisterFontsFromServiceDemo.Web
WordsProcessingRegisterFontsFromServiceDemo.Web
v4.0
true
{732DB0E6-2A4C-4B3F-8176-947180A718FB}|..\WordsProcessingRegisterFontsFromServiceDemo\WordsProcessingRegisterFontsFromServiceDemo.csproj|ClientBin|False
True
true
full
false
bin\
DEBUG;TRACE
prompt
4
pdbonly
true
bin\
TRACE
prompt
4
..\..\..\..\..\WPF_Scrum\Current\Binaries\WPF\Telerik.Windows.Documents.Core.dll
..\..\..\..\..\WPF_Scrum\Current\Binaries\WPF\Telerik.Windows.Documents.Fixed.dll
..\..\..\..\..\WPF_Scrum\Current\Binaries\WPF\Telerik.Windows.Documents.Flow.dll
..\..\..\..\..\WPF_Scrum\Current\Binaries\WPF\Telerik.Windows.Documents.Flow.FormatProviders.Pdf.dll
..\..\..\..\..\WPF_Scrum\Current\Binaries\WPF\Telerik.Windows.Zip.dll
WordsProcessingPdfService.svc
Web.config
Web.config
10.0
$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
True
True
0
/
http://localhost:50783/
False
False
False
PK
WH~3A A WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo.Web/WordsProcessingRegisterFontsFromServiceDemo.Web.csproj.user
WordsProcessingRegisterFontsFromServiceDemoTestPage.aspx
SpecificPage
True
True
False
False
False
True
[WordsProcessingRegisterFontsFromServiceDemo.xap]
PK
WHw WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo.Web/WordsProcessingRegisterFontsFromServiceDemoTestPage.aspx<%@ Page Language="C#" AutoEventWireup="true" %>
WordsProcessingRegisterFontsFromServiceDemo
PK
WH-pv v WordsProcessingForSilverlight/WordsProcessingRegisterFontsFromServiceDemo.Web/WordsProcessingRegisterFontsFromServiceDemoTestPage.html
WordsProcessingRegisterFontsFromServiceDemo
PK
WH WordsProcessingForSilverlight/PK
WHPm ? <