473,322 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

how to get value from textbox in vb6 to *.rtf files

1
Expand|Select|Wrap|Line Numbers
  1. Dim sFile As String, dFile As String
  2.         On Error GoTo Salah
  3.         If Dir(sFile) <> "" Then
  4.         Open (App.Path & "\proposal.rtf") For Output As #1
  5.         Open (App.Path & "\proposal_output.rtf") For Output As #2
  6.             Do While Not EOF(1)
  7.              Line Input #1, tmDat$
  8.                 sReplace = Replace(sReplace, "<<nama>>", nama.Text)
  9.                 sReplace = Replace(sReplace$, "<<nim>>", nim.Text)
  10.              Print #2, sReplace$
  11.                 DoEvents()
  12.             Loop
  13.             Close()
  14.         End If
  15.  
  16.         ShellExecute(hWnd, "open", dFile, "", App.Path, 1)
  17.         Exit Sub
  18. Salah:
  19.         MsgBox(Err.Description, vbInformation, "Terjadi Kesalahan")

I HAVE PROBLEM IN APP.PATH
Mar 25 '15 #1
1 1520
Killer42
8,435 Expert 8TB
Could you please provide more specific information? What sort of problem?
Apr 4 '15 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: bissatch | last post by:
Hi, I am about to write an application that will display all pdf files in a folder and display them by file name in order of date. Is there an easy way of doing this? I was thinking about...
3
by: Camelia_Flower | last post by:
I create a new Textbox from code and i assign it a default value, TextBox AddQtytxt = new TextBox(); AddQtytxt.Text = "test"; When the user change the text (to "testDone") i want to redirect the...
3
by: VB Programmer | last post by:
In my ASPX page how do I get the .text value of a textbox that is in the ItemTemplate of a datalist (using HTML)? The textbox contains the quantity for a shopping cart item. The textbox is...
7
by: johnny | last post by:
Any Good tools to create CSV Files? ReportLab only creates pdf files. I need something to create CSV files. Thank you.
94
by: mlcampeau | last post by:
I have a report (JobVacanciesOnly) that has a subreport (JobVacanciesOnlySR) that are based on two separate queries. MY - JobVacancyJobs SELECT Job.Code, Job.Title, Job.Grade, Grade.Minimum,...
3
by: hawaiijeff | last post by:
I have a form with four textboxes: A, B, C and D. Textbox A contains a date value. Textbox B is entered by the user, at which point the program locates a value in a table and uses that value to...
7
by: billa856 | last post by:
Hi, My project is in MS Access 2002. In that I have two forms which I am using for Shipping Entry. Now First Form(ShippingAlerts) Is fillup by persons working in customer services.and the Second...
1
by: mesut | last post by:
Hi colleagues, In fact I don't have a problem but just don't know which way is good and better. I need some advice which programming way I shall use. Since a couple of days I'm investing my...
4
by: MoroccoIT | last post by:
Greetings - I saw somewhat similar code (pls see link below) that does mupltiple files upload. It works fine, but I wanted to populate the database with the same files that are uploaded to...
5
Fary4u
by: Fary4u | last post by:
using <input values> text box to another text box in sort of array function to passing multiple value without loading page on one click of button <script type='text/javascript'> function...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.