I have a list of events that is working perfectly on my site. Here is the
code:
<%@ Control Language="C#" AutoEventWireup="true"
CodeFile="EventList.ascx.cs" Inherits="Objects_EventList" %>
<asp:ListView runat="server" ID="lstvwEvents"
OnItemDataBound="lstvwEvents_OnItemDataBound">
<LayoutTemplate>
<asp:ImageButton BorderStyle="0" CssClass="submitbutton"
runat="server" AlternateText="Get PDF" ID="LinkButton1"
OnClick="btnGenerateReport" />
<div class="eventtease" style="width: 249px;border-bottom: 1px
solid #c0c06b;padding-right: 10px;padding-top: 10px;height: 300px;overflow:
auto;">
<asp:Literal runat="server" ID="itemPlaceholder" />
<div style="clear: both;"></div>
</div>
</LayoutTemplate>
<ItemTemplate>
<h3 style="clear: both;border-top: 1px solid #c0c06b;padding-top:
10px;"><asp:Literal runat="server" ID="ltrlShortDate" /><br /><%#
Eval("EventName").ToString().ToUpper() %><br />(<asp:Literal runat="server"
ID="ltrlTimes" />)</h3>
<p class="eventdescription" style="font: normal normal normal
7.5pt/normal Arial, Sans-Serif;margin-top: 3px;">
<%# Eval("Description") %>
</p>
<asp:HyperLink runat="server" ID="lnkLearnMore" Text="LEARN MORE"
CssClass="learnmore" Visible="false" />
</ItemTemplate>
</asp:ListView>
When LinkButton1 is clicked to get the pdf, I need the output of my events
to display as a pdf. I am not too concerned with the design / format right
now, I just need to get this to work.
I have the correct items in my bin folder and the code behind (cs) file has
this:
using iTextSharp.text;
using iTextSharp.text.pdf;
using iTextSharp.text.html.simpleparser;
using System.IO;
I can provide my code behind code, but no internet example is giving me
output on my pdf.
Thank you.
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php