Welcome Guest Search | Active Topics | Sign In | Register

Sharepoint 2010 custom application page not rendering correctly with ASPXToPdf Options
dm
Posted: Friday, August 9, 2013 12:29:37 PM
Rank: Newbie
Groups: Member

Joined: 8/9/2013
Posts: 6
Hello,

I'm trying to use ASPXToPdf to render a portion of a page. I have ASPXToPdf on a custom sharepoint 2010 application page which uses a masterpage. Within my .aspx page I have the ASPXToPdf control and several usercontrols. When I load the page I don't see anything. If I take out the ASPXToPdf control the page loads as expected. Is there something I'm missing?


Here's my markup

Code: HTML/ASPX
<%@ Assembly Name="My.App, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5f651049d4b11efe" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Reports.aspx.cs" Inherits="My.App.Reports" DynamicMasterPageFile="~masterurl/default.master" %>
<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">

</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
   <eo:ASPXToPDF ID="ASPXToPDF1" runat="server" ></eo:ASPXToPDF>
   <!-- usercontrols below -->
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
     Reports Page
	
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
     Reports Page
</asp:Content>

eo_support
Posted: Friday, August 9, 2013 1:04:53 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

ASPXToPDF works by intercepting page output HTML, then call HtmlToPdf.ConvertHtml to perform the conversion. If there are some other module in your application that also try to intercept page output HTML, then it might conflict with ASPXToPDF and break everything. So you may want to start from an empty SharePoint application to see if the problem still occurs, and then gradually add modules/code into your application too see which one breaks it. We can then go from there once we find that out.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.