Are there examples somewhere that I should be looking at otherwise?  My
primary goal here is to be able to be able to output name badges and labels
directly in the browser for my users.

Jesse

-----Original Message-----
From: William K. Goodbody [mailto:bill.goodb...@comcast.net] 
Sent: Friday, May 28, 2010 1:57 PM
To: 'Post all your questions about iText here'
Subject: Re: [iText-questions] How to implement in Visual Studio

Beware that those sample are not fully compatible with the 5.0.2 code.

Certainly the header/footer stuff is not. I think the big changes was in 5.

Also the DLL will not work without full trust. I posted a Bug report and the
fix on sourceforge

- Bill

-----Original Message-----
From: j...@msdlg.com [mailto:j...@msdlg.com] 
Sent: Friday, May 28, 2010 1:06 PM
To: 'Post all your questions about iText here'
Subject: Re: [iText-questions] How to implement in Visual Studio

Thanks for the reply.  I've always hand-coded my sites, but I'm slowly
switching to VS, and so I'm not familiar with how to do a lot of things in
VS.  I did right-click the project and selected Add Reference.  I then
switched to the browse tab and found the .DLL. As you said, it did copy the
file to the bin folder in my project.  I am working with the first example
on the site http://www.ujihara.jp/iTextdotNET/en/examplesvb.html, I do not
use code behind, so I've modified the page as follows:

<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

<%@ Import Namespace="System" %>
<%@ Import Namespace="com.lowagie.text" %>
<%@ Import Namespace="com.lowagie.text.pdf" %>
<%@ Import Namespace="System.IO" %>

<script runat="server">
   Sub Page_Load()
      Console.WriteLine("Chapter 1 example 1: Hello World")

      ' step 1: creation of a document-object
      Dim document As New Document()

      ' step 2:
      ' we create a writer that listens to the document
      ' and directs a PDF-stream to a file

      PdfWriter.getInstance(document, New FileStream("Chap0101.pdf",
FileMode.Create))

      ' step 3: we open the document
      document.open()

      ' step 4: we add a paragraph to the document
      document.add(New Paragraph("Hello World"))

      ' step 5: we close the document
      document.close()
   End Sub
</script>

HTML code continues from her down.

When I try to build the page, I get the error, "Namespace or type specified
in the Imports 'com.lowagie.text' doesn't contain any public member or
cannot be found. Make sure the namespace or the type is defined and contains
at least one public member. Make sure the imported element name doesn't use
any aliases."  I have a feeling it's not defined, but I have no idea how to
define a name space??

How do I resolve this issue?  I will probably find a VB forum as well to
post my question to, but I appreciate any help you can offer.

Jesse

-----Original Message-----
From: Brian Lovett [mailto:brianlov...@gamestop.com] 
Sent: Friday, May 28, 2010 11:00 AM
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] How to implement in Visual Studio

Hi Jesse,

It's a little off topic for this list (more of a VS question dealing with
references), but since I am replying I'll go ahead answer your question.

You just need to add a reference to the project (browse to the DLL) and add
a using statement to the file.  That second part is optional if you don't
mind fully quailifying it with its namespace.  VS should then copy the DLL
to your bin folder automatically.  HTH.

Brian

-----Original Message-----

Message: 6
Date: Fri, 28 May 2010 10:34:21 -0400
From: <j...@msdlg.com>
Subject: [iText-questions] How to implement in Visual Studio
To: <itext-questions@lists.sourceforge.net>
Message-ID: <005b01cafe72$dcc1b690$964523...@com>
Content-Type: text/plain; charset="us-ascii"

I've downloaded iText and want to use it in Visual Studio.  I've found a
page with lots of good examples, but no instructions that I can find in
installing this and getting it running.  I've copied the itextsharp.dll file
into my bin folder, and I'm assuming that I need to put something int the
web.config file to make it accessible to the rest of the app, then the
examples I found may work, however, I have no idea what to put in the
web.config file.  Can someone help me out?

 

Thanks,

Jesse

 

-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

----------------------------------------------------------------------------
--



------------------------------

_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


End of iText-questions Digest, Vol 48, Issue 100
************************************************

----------------------------------------------------------------------------
--

_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/



----------------------------------------------------------------------------
--

_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


----------------------------------------------------------------------------
--

_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/



------------------------------------------------------------------------------

_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to