|
-
Apr 21st, 2003, 03:33 PM
#1
Thread Starter
Hyperactive Member
Reference the notepad
I need to add a reference to the notepad to use it as an object. I can't find anything that points to the right place to reference it. Any ideas anyone?
I've searched the forum and there are some wonderful things you can do with the notepad but I cannot find anything that tells me how to reference it.
-
Apr 21st, 2003, 03:37 PM
#2
Notepad is not an ActiveX control, nor is there any reason to need it to be. Notepad does'nt do anything special. Certainly nothing that can be done in minimal coding.
-
Apr 21st, 2003, 03:40 PM
#3
Thread Starter
Hyperactive Member
I've created a report and exported it as text. In this instance it creates a blank line every 5 lines.. (I've no idea why and I've looked at it pretty intensely for a while..) I need to reference a notepad object.. or I could just shell it... and take out those blank lines. I can't import it into word or the byte spacing gets all messed up. I guess if there is no reference to it I'll just shell it and run a brute force code run on it.
Thanks
-
Apr 21st, 2003, 03:43 PM
#4
Use the 'Open' file and parse the blank lines and then save it as another filename.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Apr 21st, 2003, 03:58 PM
#5
VB Code:
Dim myData As String
Open "myfile.txt" For Input As #1
Open "parsedfile.txt" For Output As #2
Do Until EOF(1)
Line Input #1, myData
If Trim(myData) = "" Then
Write #2, myData
End If
Loop
Close #2
Close #1
Something like that.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|