:::View PDF File in Silverlight Page:::

4 posts, 0 answers
  1. Ahmed
    Ahmed avatar
    55 posts
    Member since:
    Oct 2012

    Posted 20 Dec 2010 Link to this post

    I want to View PDF File in Silverlight Page So Any Suggestions or Controls I can Use for that
  2. Troy Clemons
    Troy Clemons avatar
    69 posts
    Member since:
    Apr 2010

    Posted 21 Dec 2010 Link to this post

    put a RadHtmlPlaceHolder in your silverlight app page
    then on a link or item click event
     
    RadHtmlPlaceholder1.SourceUrl = New Uri("link_to_pdf_file")

     

     

    and you are good to go.
    work for me.

    TClemons

     

     

     

     

     

     

  3. DevCraft banner
  4. Ahmed
    Ahmed avatar
    55 posts
    Member since:
    Oct 2012

    Posted 01 Jan 2011 Link to this post

    <riaControls:DomainDataSource AutoLoad="True" d:DesignData="{d:DesignInstance my:Address_Book, CreateList=true}" Height="0" LoadedData="Experience_YearsDomainDataSource_LoadedData" Name="Experience_YearsDomainDataSource" QueryName="GetExperienceYearsQuery" Width="0">
        <riaControls:DomainDataSource.DomainContext>
            <my1:REC_DOMAIN_SERVICE  />
        </riaControls:DomainDataSource.DomainContext>
    </riaControls:DomainDataSource>
    private void user_LanguageDomainDataSource_LoadedData(object sender, LoadedDataEventArgs e)
    {
        if (e.HasError)
        {
            System.Windows.MessageBox.Show(e.Error.ToString(), "Load Error", System.Windows.MessageBoxButton.OK);
            e.MarkErrorAsHandled();
        }
        else
        {
            HandleTransaction();
        }
    }
    User_Language UL = user_LanguageDomainDataSource.DataView.CurrentItem as User_Language;
    if ((user_LanguageDomainDataSource.DataView as IEditableCollectionView).IsAddingNew)
    {
         
        UL.created_date = DateTime.Now;
        UL.last_modified_date = DateTime.Now;
        UL.User_CV_ID = TestUserCVID;
        UL.UserId = TestGuid;
        (user_LanguageDomainDataSource.DataView as IEditableCollectionView).CommitNew();
    }
    else 
    {
        UL.last_modified_date = DateTime.Now;
        UL.UserId = TestGuid;
        (user_LanguageDomainDataSource.DataView as IEditableCollectionView).CommitEdit();
    }
    user_LanguageDomainDataSource.SubmitChanges();
  5. Ahmed
    Ahmed avatar
    55 posts
    Member since:
    Oct 2012
Back to Top