|
The problem is your message must look like its is being dumped by all the mail servers because it looks like SPAM. Pure and simple.
You have already said it is sending the messages and they are being received by some account, and not others. And even one appeared in the spam folder.
Change the layout of your message, add more text into the body, have a decent subject, give the attachments meaningful names etc. etc. all these things will reduce the likelihood of it being interrupted as spam.
|
|
|
|
|
Thanks you Dave.
I will try to test it again.
If you have any new of that issue please let me know.
Best regards
VB.Net
|
|
|
|
|
Hi all,
Is it possible to merge two pdf file into one using vb.net and how ?
I google it but it seems. you need to download a pdf utility or third party application. Is there a way in vb.net that will not use some utilities?
Thanks in advance.
C# コードMicrosoft End User
2000-2008
「「「「「「「「「「「「「「「「「「「「「「「「「「「「
The best things in life are free
」」」」」」」」」」」」」」」」」」」」」」」」」」」」
|
|
|
|
|
There is a libary called PDF metamorphosis. It, I guess, is an open source and written in .Net. You can take a look at it and it might help you out.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
C#Coudou wrote: Is there a way in vb.net that will not use some utilities?
Yes, you write all the code yourself.
MVP 2010 - are they mad?
|
|
|
|
|
I am feeling very good today.
Download iText Sharp .NET library[^] to start with.
The you will want this to wrap around it.
Imports iTextSharp.text
Imports iTextSharp.text.pdf
Public Class PDFMerge
#Region "Fields"
Private _sourcefolder As String
Private _destinationfile As String
Private _fileList As IList = New ArrayList()
#End Region
#Region "Properties"
'''
''' Gets or Sets the SourceFolder
'''
Public Property SourceFolder() As String
Get
Return _sourcefolder
End Get
Set(ByVal value As String)
_sourcefolder = value
End Set
End Property
'''
''' Gets or Sets the DestinationFile
'''
Public Property DestinationFile() As String
Get
Return _destinationfile
End Get
Set(ByVal value As String)
_destinationfile = value
End Set
End Property
#End Region
#Region "Public Methods"
'''
''' Add a new file, together with a given docname to the fileList and namelist collection
'''
Public Sub AddFile(ByVal pathnname As String)
_fileList.Add(pathnname)
End Sub
'''
''' Generate the merged PDF
'''
Public Sub Execute()
MergeDocs()
End Sub
Public Sub Execute(ByVal Destination As String)
DestinationFile = Destination
MergeDocs()
End Sub
#End Region
#Region "Private Methods"
'''
''' Merges the Docs and renders the destinationFile
'''
Private Sub MergeDocs()
'Step 1: Create a Docuement-Object
Dim document As New Document()
Try
'Step 2: we create a writer that listens to the document
Dim writer As PdfWriter = PdfWriter.GetInstance(document, New System.IO.FileStream(DestinationFile, System.IO.FileMode.Create))
'Step 3: Open the document
document.Open()
Dim cb As PdfContentByte = writer.DirectContent
Dim page As PdfImportedPage
Dim n As Integer = 0
Dim rotation As Integer = 0
'Loops for each file that has been listed
For Each filename As String In _fileList
'The current file path
Dim filePath As String = SourceFolder + filename
' we create a reader for the document
Dim reader As New PdfReader(filePath)
'Gets the number of pages to process
n = reader.NumberOfPages
Dim i As Integer = 0
While i < n
i += 1
document.SetPageSize(reader.GetPageSizeWithRotation(1))
document.NewPage()
'Insert to Destination on the first page
If i = 1 Then
Dim fileRef As New Chunk(" ")
fileRef.SetLocalDestination(filename)
document.Add(fileRef)
End If
page = writer.GetImportedPage(reader, i)
rotation = reader.GetPageRotation(i)
If rotation = 90 OrElse rotation = 270 Then
cb.AddTemplate(page, 0, -1.0F, 1.0F, 0, 0, _
reader.GetPageSizeWithRotation(i).Height)
Else
cb.AddTemplate(page, 1.0F, 0, 0, 1.0F, 0, _
0)
End If
End While
Next
Catch e As Exception
Throw e
Finally
document.Close()
End Try
End Sub
#End Region
End Class
Use the Destination property to set the merged PDF location and name
Use the Add method to add the PDF files you want to merge together, in the order you want them merging.
Call the Execute method to perform the merge.
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
ok. thank u very much. i'll try this one.
C# コードMicrosoft End User
2000-2008
「「「「「「「「「「「「「「「「「「「「「「「「「「「「
The best things in life are free
」」」」」」」」」」」」」」」」」」」」」」」」」」」」
|
|
|
|
|
Hi All,
I created a setup package for my project in Visual Studio 2005. I installed on a separate PC and the exe can be run from desktop also. The executable is showing on my desktop but it is not displaying any image/logo/icon etc. I mean, its showing a square shape exe on the desktop.
What I want is, whenever the exe is created on the desktop during installation, I want it to be created as an image or logo or icon. It should be same as we install Visual studio software and a desktop icon is created with title "Visual Studio 2005".
I think I am able to make my requirement clear.
Is there any setting for this during creation of setup file in VS 2005?
Regards,
R.S.
|
|
|
|
|
Your requirement isn't exactly clear. You say you're putting the .EXE file on the Desktop?? Easy. Go intop the project properties and, on the Application tab, there's a little place where you can change the icon used. It gets compiled into the .EXE and NOT done at installation time.
|
|
|
|
|
Okay, I am making a program for my friend to use, he wanted it, so he could decrypt some passwords from his database, and I got the form done, now all I need is the code to where it will decrypt the inputed password(as MD5)... Thanks.
|
|
|
|
|
Didn't you ask this a few days ago.
MD5 is a ONE WAY HASH algorithm, it cannot be decrypted, you can only try to make a database of dictionary pair values and hope you hit the ones you are trying to hack.
Thats right, hack.
No self respecting owner / administrator of data would try to decrypt his members passwords.
|
|
|
|
|
Any decent software will also be salting the hash, so unless it is a straight MD5 standard unsalted hash, even public rainbow tables wont help you.
What application is it that has done the original hash?
|
|
|
|
|
Since, again, MD5 is a one way hash, there is no way to run the hash code through something and get the original string back.
|
|
|
|
|
Before you add the decryption code that people have been refusing to give you so far, why not prepare the documentation, the marketing, the YouTube movie, and the launch event for your new app; by then technology may have evolved sufficiently for getting your problem solved in a single statement?
it can't be done
|
|
|
|
|
well thanks everyone... I'll just have to tell him that. Thanks. Will they ever make it possible?
|
|
|
|
|
No. The purpose of one-way encryption is to make sure it is one-way. one-way, as in "there is no way back".
|
|
|
|
|
Yeah, it is possible now. Starting by researching "two-way encryption algorithms" and do not use MD5 or any other one-way hashing algorithm.
|
|
|
|
|
thebiostyle wrote: Will they ever make it possible?
Who is "they"? Evil mad scientists?
|
|
|
|
|
Smithers-Jones wrote: Who is "they"? Evil mad scientists?
I'm nOt mAD!
|
|
|
|
|
Don't despair, MD5 was cracked last year by a team of security specialists. It took them only eight days with a cluster made of 200 special made computers (Playstation3) to crack one password.
So it's not impossible, but close enough.
|
|
|
|
|
hi......
I am working on a project where i need to write a vb Script in word 2007 and also i wantto add the button in word 2007 and even for the same..
So how should i go for this????
|
|
|
|
|
Have you switched on the DEVELOPER tab?
(Jewel-Word Options-Popular-Developer Tab).
Write the script within this.
You can set it to run in ALL Docs, specific Docs etc, and to run on start or on request.
If you could specify what kind of functionality you require I could be more helpful.
To add a button, just place a shape on the page and assign a macro.
Unless you mean to add to the Ribbon, in which case download a CustomUIEditor.
Get It Here[^].
------------------------------------
No Good Deed Goes Unpunished Clare Boothe Luce
|
|
|
|
|
|
I would need to pass an array (variant) which was dimensioned and "filled" in VBScript to a com-interop-based VB.Net .dll
On the VBS side I got;
Dim DoubleArray(4) 'Fixed size array
DoubleArray(0) = 100
DoubleArray(1) = 200
DoubleArray(2) = 300
DoubleArray(3) = 400
This is purely for test purposes so don't lose it over the inefficiency of the way I did that
On the VB.net dll side I got the following property with which I tried to get the array;
Public Property DataY() As Object()
Get
Return RezultatiY
End Get
Set(ByVal value As Object())
RezultatiY = value
End Set
End Property
At first I tried declaring DataY as Integer Array and got "type mismatch" error, this was before I was aware of the fact that VBS does not deal with "type" arrays (integer array, string array), only "variant" ones. This made me try to pass it as an object...again it didn't work.
I have never before worked with VBScript (which is painfully apparent) and after having spent 2 days pouring over google search results it became self evident that the problem is not only in my lack of knowledge but also in some sort of inconsistency between array definitions in VB.Net and VBScript.
Currently I am fiddling with the following method in my COM .dll, hoping it would work;
Public Class GetArray
Public Function GetArrayPls(ByRef vntArray As VariantType)
Dim NewArray = Nothing
NewArray = vntArray
MsgBox(vntArray(1).ToString)
Return NewArray
End Function
*Any* help would be *much* appreciated.
Thanks!
|
|
|
|
|