Click here to Skip to main content
15,900,378 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralTimer Function Pin
Mega128-Jul-04 16:57
Mega128-Jul-04 16:57 
GeneralRe: Timer Function Pin
Dave Kreskowiak29-Jul-04 6:04
mveDave Kreskowiak29-Jul-04 6:04 
GeneralWIA called in VB6 Pin
PLTEH28-Jul-04 16:17
PLTEH28-Jul-04 16:17 
GeneralRe: WIA called in VB6 Pin
Dave Kreskowiak29-Jul-04 5:50
mveDave Kreskowiak29-Jul-04 5:50 
GeneralRe: WIA called in VB6 Pin
PLTEH29-Jul-04 15:57
PLTEH29-Jul-04 15:57 
GeneralRe: WIA called in VB6 Pin
Dave Kreskowiak30-Jul-04 1:10
mveDave Kreskowiak30-Jul-04 1:10 
GeneralAccessing MIDI in VB Pin
Kevnar27-Jul-04 20:04
Kevnar27-Jul-04 20:04 
GeneralCreating a Tiff that is Fax Ready Pin
gthompson200527-Jul-04 16:35
gthompson200527-Jul-04 16:35 
Dave I'm sure you'll be the one responding so I'll direct towards you, and by the way , I think I can say on behalf of all of us here, you are a great help.

I had asked you a question a while back, about printing with forsay the printdocument to a file. Well going the other route of creating the tif image file myself.

My problem, is I can create a tiff image file, and it'll open on my home computer, but at work, when I try to open it, or pass it our Biscom Fax Software, it says incorrect format, which I'm sure it's cause it's not compressed right. If you could guide me in the right direction, or tell me what I'm doing wrong, Here as follows is my code

Dim b As Bitmap = New Bitmap(800, 1100)
Dim g As Graphics = Graphics.FromImage(b)
g.SmoothingMode = Drawing2D.SmoothingMode.HighQuality


g.DrawString(myuser.username, New Font("Arial", 12, FontStyle.Regular), Brushes.Black, 240, 20)
g.DrawString(myuser.outsidephone, New Font("Arial", 12, FontStyle.Regular), Brushes.Black, 250, 37)
g.DrawString(myuser.email, New Font("Arial", 12, FontStyle.Regular), Brushes.Black, 185, 53)


g.DrawString(" Name : " + TextBox2.Text, New Font("Arial", 12, FontStyle.Regular), Brushes.Black, 50, 130)
customerinfo = Customerfind(TextBox1.Text)
g.DrawString("Company : " + customerinfo.Company, New Font("Arial", 12, FontStyle.Regular), Brushes.Black, 50, 150)
g.DrawString(" Phone : " + TextBox3.Text, New Font("Arial", 12, FontStyle.Regular), Brushes.Black, 50, 170)
g.DrawString(" Fax : " + TextBox4.Text, New Font("Arial", 12, FontStyle.Regular), Brushes.Black, 50, 190)
g.DrawString("Active Part", New Font("Arial", 30, FontStyle.Bold), Brushes.Black, 280, 260)
Dim mypos As Integer = 315


Dim index As Integer
Dim total As Integer
total = ListView1.Items.Count
For index = 0 To total - 1
g.DrawString("Part # : ", New Font("Arial", 12, FontStyle.Regular), Brushes.Black, 80, mypos)
g.DrawString(ListView1.Items(index).Text, New Font("Arial", 12, FontStyle.Regular), Brushes.Black, 150, mypos)
mypos += 20
g.DrawString("Description : ", New Font("Arial", 12, FontStyle.Regular), Brushes.Black, 50, mypos)
g.DrawString(ListView1.Items(index).SubItems(1).Text, New Font("Arial", 12, FontStyle.Regular), Brushes.Black, 150, mypos)
mypos += 20
g.DrawString("Price : ", New Font("Arial", 12, FontStyle.Regular), Brushes.Black, 80, mypos)
g.DrawString(ListView1.Items(index).SubItems(2).Text, New Font("Arial", 12, FontStyle.Regular), Brushes.Black, 150, mypos)

mypos += 20
g.DrawString("Cubes : ", New Font("Arial", 12, FontStyle.Regular), Brushes.Black, 80, mypos)
g.DrawString(ListView1.Items(index).SubItems(3).Text, New Font("Arial", 12, FontStyle.Regular), Brushes.Black, 150, mypos)

mypos += 40

Next
Dim blackpen As New Pen(Color.Black, 3)
g.DrawRectangle(blackpen, 30, 240, 760, 180 + (mypos - 400))

mypos += 100
g.DrawString("Notes", New Font("Arial", 14, FontStyle.Bold), Brushes.Black, 60, mypos)
g.DrawString(TextBox9.Text, New Font("Arial", 12, FontStyle.Regular), Brushes.Black, 60, mypos + 25)



g.Save()
Dim mysave As String = install + "\Active\" + TextBox2.Text + "-" + Today.Month.ToString + "-" + Today.Day.ToString + "-" + Today.Year.ToString + ".tif"
b.Save(mysave, Imaging.ImageFormat.Tiff)

g.Dispose()
b.Dispose()



GeneralRe: Creating a Tiff that is Fax Ready Pin
Dave Kreskowiak28-Jul-04 7:10
mveDave Kreskowiak28-Jul-04 7:10 
GeneralRe: Creating a Tiff that is Fax Ready Pin
gthompson200528-Jul-04 15:04
gthompson200528-Jul-04 15:04 
GeneralDataGrid RowHeaderClick Event Pin
ColdWaterBlue27-Jul-04 10:34
ColdWaterBlue27-Jul-04 10:34 
GeneralRe: DataGrid RowHeaderClick Event Pin
Syed Abdul Khader30-Jul-04 0:20
Syed Abdul Khader30-Jul-04 0:20 
GeneralListView: Display only txt files Pin
Brad Fackrell27-Jul-04 7:16
Brad Fackrell27-Jul-04 7:16 
GeneralRe: ListView: Display only txt files Pin
Dave Kreskowiak27-Jul-04 10:11
mveDave Kreskowiak27-Jul-04 10:11 
GeneralRe: ListView: Display only txt files Pin
Brad Fackrell27-Jul-04 10:50
Brad Fackrell27-Jul-04 10:50 
GeneralOracleClient Pin
beowulfagate26-Jul-04 17:54
beowulfagate26-Jul-04 17:54 
QuestionHow can I put the MMC snap-in in a Web browser? Pin
zzzhouzhou26-Jul-04 16:38
zzzhouzhou26-Jul-04 16:38 
GeneralMultiple Bitmaps Pin
maykut209926-Jul-04 14:55
maykut209926-Jul-04 14:55 
GeneralRe: Multiple Bitmaps Pin
Dave Kreskowiak27-Jul-04 7:01
mveDave Kreskowiak27-Jul-04 7:01 
GeneralRe: Multiple Bitmaps Pin
maykut209928-Jul-04 13:51
maykut209928-Jul-04 13:51 
GeneralRe: Multiple Bitmaps Pin
Dave Kreskowiak28-Jul-04 14:16
mveDave Kreskowiak28-Jul-04 14:16 
GeneralRe: Multiple Bitmaps Pin
maykut209928-Jul-04 14:21
maykut209928-Jul-04 14:21 
GeneralRe: Multiple Bitmaps Pin
Aaron Eldreth29-Jul-04 17:10
Aaron Eldreth29-Jul-04 17:10 
GeneralRe: Multiple Bitmaps Pin
maykut209929-Jul-04 17:21
maykut209929-Jul-04 17:21 
Generalquestions in vb.net Pin
ahmad_yossef26-Jul-04 0:35
ahmad_yossef26-Jul-04 0:35 

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.