Click here to Skip to main content
15,897,273 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: File.Delete Method Pin
98fireblade17-Aug-10 8:30
98fireblade17-Aug-10 8:30 
GeneralRe: File.Delete Method Pin
ChandraRam18-Aug-10 2:48
ChandraRam18-Aug-10 2:48 
QuestionMathmL control for math operations [modified] Pin
selpra17-Aug-10 1:40
selpra17-Aug-10 1:40 
AnswerRe: MathmL control for math operations Pin
Richard MacCutchan17-Aug-10 2:05
mveRichard MacCutchan17-Aug-10 2:05 
QuestionPDF creating Pin
JR21217-Aug-10 1:38
JR21217-Aug-10 1:38 
AnswerRe: PDF creating Pin
Dave Kreskowiak17-Aug-10 3:32
mveDave Kreskowiak17-Aug-10 3:32 
GeneralRe: PDF creating Pin
JR21217-Aug-10 3:35
JR21217-Aug-10 3:35 
GeneralRe: PDF creating Pin
JR21219-Aug-10 21:46
JR21219-Aug-10 21:46 
Hi,

I have already this TEST code(quick and dirty)
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  Dim doc As New iTextSharp.text.Document(iTextSharp.text.PageSize.A4, 10, 10, 10, 10)
  Dim fi As New IO.FileInfo(New IO.FileInfo(Application.ExecutablePath).Directory.FullName & "\test.pdf")
  Dim sw As iTextSharp.text.pdf.PdfWriter = iTextSharp.text.pdf.PdfWriter.GetInstance(doc, New IO.FileStream(fi.FullName, IO.FileMode.Create))
  doc.Open()
  Dim pg As New iTextSharp.text.Paragraph("Eerste test")
  Dim bf1 As iTextSharp.text.pdf.BaseFont = iTextSharp.text.pdf.BaseFont.CreateFont(System.Environment.GetFolderPath(Environment.SpecialFolder.Fonts) &
    "\Arial.ttf", iTextSharp.text.pdf.BaseFont.CP1250, False)
  Dim bf2 As iTextSharp.text.pdf.BaseFont = iTextSharp.text.pdf.BaseFont.CreateFont(System.Environment.GetFolderPath(Environment.SpecialFolder.Fonts) &
    "\Wingding.ttf", iTextSharp.text.pdf.BaseFont.CP1250, False)
  Dim fnt As New iTextSharp.text.Font(bf2)
  Dim bc As New iTextSharp.text.BaseColor(Color.Red)
  fnt.Color = bc
  fnt.Size = 20
  Dim prg As New iTextSharp.text.Paragraph("Symbolen", fnt)

  Dim i As iTextSharp.text.Image = New iTextSharp.text.Jpeg(New Uri("D:\Data_Jan\Mijn afbeeldingen\000000-78025-200x200.jpg"))
  i.Rotation = 45
  doc.Add(pg)
  doc.Add(prg)
  doc.Add(New iTextSharp.text.Jpeg(i))
  Dim cb As iTextSharp.text.pdf.PdfContentByte = sw.DirectContent
  cb.MoveTo(0, 0)
  cb.LineTo(doc.PageSize.Width, doc.PageSize.Height)
  cb.SetColorStroke(New iTextSharp.text.BaseColor(Color.Blue))
  cb.Stroke()

  cb.SetFontAndSize(bf1, 50)
  cb.BeginText()
  cb.MoveText(200, 100)

  cb.ShowText("Text on 200-100")
  cb.EndText()

  'rotation

  'end rotation
  doc.Close()
  Process.Start(fi.FullName)
  Me.Close()
End Sub


At this moment a simple image some text and lines is all I need.

However I can't figer it out how to rotate a single line of text. Rotate an image or the whole page works.


Someone can explain it. almost everything I found is asp or C# + my english it not perfect

Jan
Questionhow to work with webcams or video for face recognition under vb Pin
droidman16-Aug-10 10:23
droidman16-Aug-10 10:23 
AnswerRe: how to work with webcams or video for face recognition under vb Pin
David Mujica16-Aug-10 10:37
David Mujica16-Aug-10 10:37 
GeneralRe: how to work with webcams or video for face recognition under vb Pin
droidman16-Aug-10 11:17
droidman16-Aug-10 11:17 
GeneralDxSnap Pin
David Mujica17-Aug-10 4:54
David Mujica17-Aug-10 4:54 
GeneralRe: DxSnap Pin
droidman17-Aug-10 7:35
droidman17-Aug-10 7:35 
GeneralRe: DxSnap Pin
jason nelson30-Sep-10 10:02
jason nelson30-Sep-10 10:02 
AnswerRe: how to work with webcams or video for face recognition under vb PinPopular
Dave Kreskowiak16-Aug-10 11:01
mveDave Kreskowiak16-Aug-10 11:01 
QuestionEncrypt / Decrypt - (VISA-0 Format) Pin
ams201013-Aug-10 11:14
ams201013-Aug-10 11:14 
Questionhow to capture a mouse move control in a container in vb.net 2005 Pin
Andraw Tang13-Aug-10 9:54
Andraw Tang13-Aug-10 9:54 
AnswerRe: how to capture a mouse move control in a container in vb.net 2005 Pin
Andraw Tang13-Aug-10 10:20
Andraw Tang13-Aug-10 10:20 
QuestionHow to show tooltip for a disabled control in vb.net Pin
Andraw Tang13-Aug-10 5:28
Andraw Tang13-Aug-10 5:28 
AnswerRe: How to show tooltip for a disabled control in vb.net Pin
Andraw Tang13-Aug-10 6:11
Andraw Tang13-Aug-10 6:11 
AnswerRe: How to show tooltip for a disabled control in vb.net Pin
Luc Pattyn13-Aug-10 6:44
sitebuilderLuc Pattyn13-Aug-10 6:44 
GeneralRe: How to show tooltip for a disabled control in vb.net Pin
Andraw Tang13-Aug-10 6:52
Andraw Tang13-Aug-10 6:52 
GeneralRe: How to show tooltip for a disabled control in vb.net Pin
Andraw Tang13-Aug-10 7:23
Andraw Tang13-Aug-10 7:23 
GeneralRe: How to show tooltip for a disabled control in vb.net Pin
Luc Pattyn13-Aug-10 7:28
sitebuilderLuc Pattyn13-Aug-10 7:28 
GeneralRe: How to show tooltip for a disabled control in vb.net Pin
Andraw Tang13-Aug-10 7:34
Andraw Tang13-Aug-10 7:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.