C# 如何从windows phone 7应用程序生成pdf

C# 如何从windows phone 7应用程序生成pdf,c#,windows-phone-7,pdf,C#,Windows Phone 7,Pdf,我正在windows phone 7应用程序中构建一个应用程序。我的申请表里有一张表格。表格的代码为: XAML: } 我知道如何添加我的web服务,以及如何从web服务获取数据并将其显示在我的应用程序中。现在我想把这些数据发送到webmethod,它是registertoteam。请提供帮助我目前无法共享代码,但可以通过bing快速搜索,并给出以下结果和(推荐)。我最近在我的一个应用程序中集成了相同的代码。我做出了以下决定 codeplex提供的开源库毫无价值。他们甚至没有加入到项目中 目前,

我正在windows phone 7应用程序中构建一个应用程序。我的申请表里有一张表格。表格的代码为:

XAML:

}


我知道如何添加我的web服务,以及如何从web服务获取数据并将其显示在我的应用程序中。现在我想把这些数据发送到webmethod,它是registertoteam。请提供帮助

我目前无法共享代码,但可以通过bing快速搜索,并给出以下结果和(推荐)。

我最近在我的一个应用程序中集成了相同的代码。我做出了以下决定

codeplex提供的开源库毫无价值。他们甚至没有加入到项目中

目前,windows phone开发人员不支持或没有任何可用的库来使用它呈现PDF

这将是一项有点乏味的任务。至于制作pdf,您需要自己制作完整的pdf文件格式,因为没有图书馆支持

所以,在核心中做这件事是我要推荐的第一个链接。(这解决了你的目的。)。这个链接还附带了一个源代码

有关更多和组织良好的解决方案,请查看我的堆叠流程


关于电子邮件附件,这是我和你的错!到目前为止,还没有对开发人员的这种支持(

以后您是否可以共享代码。或者,如果生成pdf的代码太长,您是否可以编写代码,通过单击“提交”按钮将数据发送到注册表Toteam web方法web方法注册表Toteam包含以下数据:姓名、街道地址、城市地址、邮政编码、电子邮件地址、电话号码、年龄、性别可以在明天晚上坐下来。好的,谢谢你提供的信息。你能帮我通过点击提交按钮将表单中的数据发送到特定的web方法吗?我想发送数据的web方法是registertoteam
<TextBox GotFocus="OnGotFocus" Canvas.Left="6" Canvas.Top="6" Height="74" Name="name" Text="*Name" Width="453" BorderThickness="0"/>
<TextBox GotFocus="OnGotFocus1" Canvas.Left="6" Canvas.Top="66" Height="74" Name="age" Text="*Age" Width="453" BorderThickness="0" />
<TextBlock Canvas.Left="20" Canvas.Top="157" Height="44" Name="gen" Text="Gender" Foreground="Black" FontFamily="Verdana" FontSize="24" Width="134" />
<RadioButton Canvas.Left="139" Canvas.Top="157" FontStyle="Italic" GroupName="Gender" Foreground="Black" Content="Male" Height="71" Name="male" Width="154" />
<RadioButton Canvas.Left="139" Canvas.Top="207"  FontStyle="Italic" GroupName="Gender" Foreground="Black" Content="Female" Height="71" Name="fem" Width="140" />
<TextBox GotFocus="OnGotFocus2" Canvas.Left="6" Canvas.Top="267" Height="74" Name="sadd" Text="*Street Address" Width="453" BorderThickness="0"/>
<TextBox GotFocus="OnGotFocus3" Canvas.Left="6" Canvas.Top="327" Height="74" Name="cadd" Text="*City Address" Width="453" BorderThickness="0"/>
<TextBox GotFocus="OnGotFocus4" Canvas.Left="6" Canvas.Top="387" Height="74" Name="eadd" Text="*Email Address" Width="453" BorderThickness="0"/>
<TextBox GotFocus="OnGotFocus5" Canvas.Left="6" Canvas.Top="447" Height="74" Name="phn" Text="*Phone" Width="453" BorderThickness="0"/>
<TextBox GotFocus="OnGotFocus6" Canvas.Left="6" Canvas.Top="507" Height="74" Name="zip" Text="*Zip Code" Width="453" BorderThickness="0"/>
namespace KejriwalPhoneApp
{
public partial class Join : PhoneApplicationPage
{
    public Join()
    {
        InitializeComponent();



    }


    private void OnGotFocus(object sender, RoutedEventArgs e)
    {
        if (name.Text.Equals("*Name", StringComparison.OrdinalIgnoreCase))
        {
            name.Text = string.Empty;
        }
    }

    private void OnGotFocus1(object sender, RoutedEventArgs e)
    {
        if (age.Text.Equals("*Age", StringComparison.OrdinalIgnoreCase))
        {
            age.Text = string.Empty;
        }
    }

    private void OnGotFocus2(object sender, RoutedEventArgs e)
    {
        if (sadd.Text.Equals("*Street Address", StringComparison.OrdinalIgnoreCase))
        {
            sadd.Text = string.Empty;
        }
    }

    private void OnGotFocus3(object sender, RoutedEventArgs e)
    {
        if (cadd.Text.Equals("*City Address", StringComparison.OrdinalIgnoreCase))
        {
            cadd.Text = string.Empty;
        }
    }

    private void OnGotFocus4(object sender, RoutedEventArgs e)
    {
        if (eadd.Text.Equals("*Email Address", StringComparison.OrdinalIgnoreCase))
        {
            eadd.Text = string.Empty;
        }
    }

    private void OnGotFocus5(object sender, RoutedEventArgs e)
    {
        if (phn.Text.Equals("*Phone", StringComparison.OrdinalIgnoreCase))
        {
            phn.Text = string.Empty;
        }
    }

    private void OnGotFocus6(object sender, RoutedEventArgs e)
    {
        if (zip.Text.Equals("*Zip Code", StringComparison.OrdinalIgnoreCase))
        {
            zip.Text = string.Empty;
        }
    }


    private void Image_Previous(object sender, RoutedEventArgs e)
    {
        NavigationService.Navigate(new Uri("/AAP.xaml", UriKind.Relative));
    }

    private void submit_Click(object sender, RoutedEventArgs e)
    {
        if (name.Text == String.Empty)
        {
            MessageBox.Show("Please Enter the name");
            name.Focus();
        }

        if (age.Text == String.Empty)
        {
            MessageBox.Show("Please Enter the age");
            age.Focus();
        }

        if (male.IsChecked == true)
        {
            string gender = male.Content.ToString();
        }
        else if (fem.IsChecked == true)
        {
            string gender = fem.Content.ToString();
        }
        else    //none of them is selected.
        {
            MessageBox.Show("Please select your Gender");
        }

        if (sadd.Text == String.Empty)
        {
            MessageBox.Show("Please Enter the Street Address");
            sadd.Focus();
        }

        if (cadd.Text == String.Empty)
        {
            MessageBox.Show("Please Enter the City Address");
            cadd.Focus();
        }

        if (eadd.Text == String.Empty)
        {
            MessageBox.Show("Please Enter the Email Address");
            eadd.Focus();
        }

        if (phn.Text == String.Empty)
        {
            MessageBox.Show("Please Enter the Phone Number");
            phn.Focus();
        }

        if (zip.Text == String.Empty)
        {
            MessageBox.Show("Please Enter the Zipcode");
            zip.Focus();
        }

 }

    private void reset_Click(object sender, RoutedEventArgs e)
    {
        name.Text = String.Empty;
        age.Text = String.Empty;
        sadd.Text = String.Empty;
        cadd.Text = String.Empty;
        eadd.Text = String.Empty;
        phn.Text = String.Empty;
        zip.Text = String.Empty;
        male.IsChecked = false;
        fem.IsChecked = false;

    }
}