Skip to main content
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  IBM Lotus Notes/Domino 8.5 Forum (includes Lotus Notes Traveler)

IBM Lotus Notes/Domino 8.5 Forum (includes Lotus Notes Traveler)

Sign in to participate Previous Next
Subject: Windows 7 vs Windows 10
Feedback Type: Problem
Product Area: Notes Client
Technical Area: Application Development
Platform: Windows
Release: 8.5.3
Reproducible: Always

I have some code that generates an html file..

It has worked for years.. We recently upgraded some computers to Windows 10, and the code is not working for those users now.

When I run the debugger, it fails on this line:
Open filename For Output As fileNum%

We verified that the users have the ability to write to that file path.

I still have Windows 7 and it works fine for me.


Dim Session As New NotesSession
Dim db As NotesDatabase
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim doc As NotesDocument
Dim fileNum As Integer
Dim uniqueId As Variant
Dim bioText As NotesRichTextItem
Dim vFormula As Variant
Set uidoc = workspace.CurrentDocument
Set doc = uidoc.Document
Set db = session.CurrentDatabase
Set bioText = doc.GetFirstItem("Bio")
Dim experienceView As NotesView
Dim ExSummaryCollection As NotesDocumentCollection
Dim exDoc As NotesDocument
Dim sortedEx As NotesDocumentCollection
Dim fNames(0) As String
fNames(0) = "startY"
fileNum% = Freefile()
uniqueId = Evaluate(|@Unique|)
enamenochar = Evaluate(|@ReplaceSubstring(empName;" ";"")|,doc)
filename = "C:\Users\Public\Public Documents\" & enamenochar(0) & "-StandardResume-" & Format(Now,"mm-dd-yyyy") & ".htm"
Open filename For Output As fileNum%
Print #fileNum%,|<HTML><div><font face="Palatino Linotype"><font size="2">|
Print #fileNum%,doc.probText(0)
Print #fileNum%,"<br><b>EXPERIENCE</b><BR>"
Set experienceView = db.GetView("evexperience")
Set exSummaryCollection = experienceView.GetAllDocumentsByKey(doc.empName(0))
Set sortedEx = sortCollection(exSummaryCollection,fNames)
If sortedEX.Count > 0 Then
Set exDoc = sortedEX.GetLastDocument
Do Until exDoc Is Nothing
If exDoc.doctype(0) = "CompanyName" Then
Print #fileNum%, exDoc.htimlInfo(0)
End If
Set exDoc = sortedEX.GetPrevDocument(exDoc)
Loop
End If
Print #fileNum%, doc.hiddeneducationprop(0) & doc.hiddentrainingcertsprop(0)
Print #fileNum%,|</font></font></div></HTML>|
Close fileNum%

'Attach Exported Action Items to the Log document
Set rtitem = New NotesRichTextItem( whichDoc, rtfieldName )
Set object = rtitem.EmbedObject ( EMBED_ATTACHMENT, "", filename )
Call uidoc.refresh
Call rtitem.Compact
Call doc.save(True,True,True)
Call uidoc.Save
Call uidoc.Close
Kill filename


Feedback number WEBBATBKU3 created by Elizabeth Thiede on 11/21/2017

Status: Open
Comments:

Windows 7 vs Windows 10 (Elizabeth Thied... 21.Nov.17)
. . file exists (Barry Shapiro 21.Nov.17)
. . . . well.. (Elizabeth Thied... 21.Nov.17)
. . . . . . Is it possible you only want the fi... (Mike Woolsey 21.Nov.17)
. . . . . . Have you tried using %USERPROFILE%\... (Jochen Sack 27.Nov.17)
. . undefined? (Constantin A Ch... 21.Nov.17)




Printer-friendly

Search this forum


Sign In or Register

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

Resources

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support


 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums


 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite