Results 1 to 9 of 9

Thread: Graphic add referance

  1. #1

    Thread Starter
    Member
    Join Date
    May 2006
    Posts
    35

    Graphic add referance

    Help may i know below picture what reference should i add



    thankyou

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Graphic add referance

    You tell us. There's no such class in the .NET Framework so it must be from somewhere else.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    Hyperactive Member vbcode1980's Avatar
    Join Date
    Nov 2005
    Location
    Anywhere the wind blows
    Posts
    365

    Re: Graphic add referance

    It appears to be Adobe Actionscript.
    It can be used to manipulate graphics in Flash.
    I code C#....

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Graphic add referance

    Where did you find that piece of code?

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Graphic add referance

    Definitely ActionScript. *shudder*

    The closest you can get is to use the Flash API in a C# project. I don't know if you can dictate the ActionScript that goes into an SWF though.

  6. #6

    Thread Starter
    Member
    Join Date
    May 2006
    Posts
    35

    Re: Graphic add referance

    well hi all and thankyou

    i actually want to draw rectangle in the PDF

    http://itextsharp.sourceforge.net/tutorial/ch04.html

    i using iTextSharp as pdf tools

    so the code i got from there but cannot work

    some how i want to get a output like http://itextsharp.sourceforge.net/examples/Chap0404.pdf (picture)
    http://itextsharp.sourceforge.net/examples/Chap0404.cs ( source code)
    then i modify from there

  7. #7
    Hyperactive Member vbcode1980's Avatar
    Join Date
    Nov 2005
    Location
    Anywhere the wind blows
    Posts
    365

    Re: Graphic add referance

    According to that source file you'll need to add a reference to the iTextSharp library and add this:
    Code:
    using iTextSharp.text;
    using iTextSharp.text.pdf;
    I code C#....

  8. #8

    Thread Starter
    Member
    Join Date
    May 2006
    Posts
    35

    Re: Graphic add referance

    using System;
    using System.Configuration;
    using System.Data;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Collections;
    using System.Data.SqlClient;
    using System.Web.DataAccess;
    using System.Text.RegularExpressions;
    using System.IO;
    using System.Text;
    using iTextSharp.text;
    using iTextSharp.text.pdf;
    using System.Drawing;
    using System.Drawing.Drawing2D;
    using System.Drawing.Design;
    using System.Drawing.Imaging;
    using System.Drawing.Printing;
    using System.Drawing.Text;

    i have add all these reference but still cannot . . . .

    hmm nvm i will like to ask if any one have tried draw rectangle on PDF . is it possible?

  9. #9
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Graphic add referance

    Those are not references. Those are namespace imports. All that does is allow you to refer to a type in one of those namespaces without qualifying the name, e.g. Image instead of System.Drawing.Image. A reference is quite different. You add a reference in the Solution Explorer. By adding a reference you tell the compiler that a specific library exists. If the compiler doesn't know that a library exists then you can't refer to the namespaces and types it contains in your project.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width