Jump to content

Recommended Posts

Posted

This is the UDF i'm using

Global $fileloc = "c:\sig.html"

Func _PlainHTML ( $address , $branch , $name , $title, $department , $phone , $fax , $email , $registered )
; the 2 flag designates that it will overwrite any info currently in the target file.
    Local $file = FileOpen ( $fileloc , 2 )
    FileWriteline ( $file , "<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.0 Transitional//EN"">" )
    .....
    writing some more html to be written
    .....
    Return ( $fileloc )
EndFunc

Then in my script i call it like this

If $plainb = 1 Then
    $sigloc = _PlainHTML ( $address , $branch , $name , $title, $department , $phone , $fax , $email , $registered )
    $type = "Plain Signature"
ElseIf $fbropenb =1 Then
    $sigloc = _FBROpenHTML ( $address ,$branch , $name , $title, $department , $phone , $fax , $email , $registered )
    $type = "FBROpen 2006 Signature"
ElseIf $investorb = 1 Then
    $sigloc = _FBRInvHTML ( $address , $branch , $name , $title, $department , $phone , $fax , $email , $registered )
    $type = "FBR Investor Conf 2005 Signature"
EndIf

and later on in the script i have it added to outlook but when it enters $sigloc into the destination the file exists but is empty. After the script is done however the file is written as intended.

Posted

the issue with that is i cant get it to use a temp directory. i cant even get it to open a file in a temp directory. basically when i set the images to be in "@tempDir & "\Sigstuff\files" it doesnt like it, it also doesnt like it when i try to open "@tempDir & "\Sigstuff\sig.html""

Posted

the issue with that is i cant get it to use a temp directory. i cant even get it to open a file in a temp directory. basically when i set the images to be in "@tempDir & "\Sigstuff\files" it doesnt like it, it also doesnt like it when i try to open "@tempDir & "\Sigstuff\sig.html""

<{POST_SNAPBACK}>

what errors dod you get? Is it a permissions issue? Do the directories exist? Are there files already in there, being held open by another program/process?
Posted

OK, so what happens when you create the directories before copying the files? Do you still get the same error?

Which function is returning the error, and what is the error code?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...