Search Results - VBForums

Search:

Type: Posts; User: aspfun

Page 1 of 10 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    87

    Re: Merge two text files into one

    In fact, these two text files are using vedit to translate from ebcdic file. (2G)
    First, I use vedit to split two ebcdic files and then translate into two text files.
    In order to insert into SQL, I...
  2. Replies
    3
    Views
    87

    Merge two text files into one

    For processing reason, I need to split big text file into two files. One is from column 1 to 200 and another is from 201 to 1500.

    How to code to merge these two files into one text file, that is...
  3. Replies
    0
    Views
    82

    Add carriage return at EBCDIC file

    I used IO.StreamReader and IO.StreamWriter to read EBCDIC and write to text file learning from below:
    http://www.codeproject.com/Articles/31720/How-to-Read-an-EBCDIC-File-in-VB-NET

    It works fine....
  4. Replies
    2
    Views
    119

    Save binary data into SQL table

    I was assigned a project to read binary data file (2G) and select data from OrderID, OrderDate and Price three columns (there are about 50 columns) into SQL table.
    Where to start? Do I need to...
  5. Email error "Unable to read data from the transport connection: net_io_connectionclos

    I used code below to send emails everyday from my pc automatically:

    Dim myMail As New SmtpClient("email.hcpipa.com")
    myMail.Credentials = New System.Net.NetworkCredential("mymail",...
  6. Replies
    1
    Views
    113

    Listbox remove never work in for loop

    I used code below to add OrderID from listbox and then remove this OrderID from listbox but remove code never work.

    Why?

    For i As Integer = 0 To lsbData.Items.Count - 1...
  7. Replies
    3
    Views
    118

    Re: Split line from big text file

    Thank you. It works great!
  8. Replies
    3
    Views
    118

    Split line from big text file

    I need to split line from one big text file.(80MB)

    For example, text file look like below

    ST*837*000008~BHT*0019*00*1*20140205*1020*RP~REF*87*004010X098~

    I need code to update it as below...
  9. Replies
    1
    Views
    100

    Read a text file and search for ORDERID

    I need to create a vb.net program to read a text file (c:\order\order.txt, about 60MB) and search any ORDERID starting ***.

    For example, text file look like
    ...
  10. Thread: Timeout expired

    by aspfun
    Replies
    2
    Views
    108

    Timeout expired

    My asp.net program try to use a loop to insert data into a table. There are about 5000 records need to be inserted.

    But for a while, I got an error message said:

    Timeout expired. The timeout...
  11. Replies
    1
    Views
    137

    Find out maximum sequence number?

    In SQL server, the following code is works to find out maximum number in SEQUENCE column.

    SEQUENCE column is int type increasing by 1

    select max(SEQUENCE) as MYSEQ from Order where ordernumber...
  12. Access to the path '\\myserver\order\myorder\' is denied

    I can open this folder: \\myserver\order\myorder\ and all folders under myorder can list on the listbox1.
    But the following code got an error said:

    Access to the path '\\myserver\order\myorder\'...
  13. Re: How to code to load firs column only without column head?

    vs2010, 4.0
  14. Re: How to code to load firs column only without column head?

    Thank you for help but I got an error: skip is not member of system.array
  15. How to code to load firs column only without column head?

    I used code

    listbox1.Items.AddRange(IO.File.ReadAllLines("d:\claim.txt"))

    to load claim info into listbox. It works fine.

    There are about 20 columns in claim.txt.

    How to code to load...
  16. Replies
    2
    Views
    171

    Hide page url without url rewriting

    I created a asp.net program as http://mycompany.com/
    I want whenever user clicks any link, such as

    http://mycompany.com/order.aspx

    http://mycompany.com/bill.aspx
    ...
  17. Re: How to add a code to make "if error goto next"?

    Like below?


    Private functiion Myfunction() as boolean
    For i As Integer = 0 To listbox.Items.Count - 1
    MmberFileName = Path.GetFileName(listbox.Items(i))
    Try
    ...
  18. How to add a code to make "if error goto next"?

    I created a function to return Boolean in which there are another 3 sub-functions.
    All sub-function is return Boolean as well


    Private functiion Myfunction() as boolean
    For i As Integer = 0...
  19. Re: How to compile windows app to make exe file including all dll files?

    Never mind.
    I found the answer.

    http://stackoverflow.com/questions/10137937/merge-dll-into-exe
  20. How to compile windows app to make exe file including all dll files?

    In my develop pc, I installed itextsharp so there are itextsharp.dll and itextsharp.xml in debug folder.
    I ran app and created a myapp.exe. Once I copied myapp.exe to another pc, an error occurred...
  21. Replies
    1
    Views
    131

    Convert word to pdf

    I used code below to convert word to pdf but if the doc file is opened by another user program will stop.

    How to fix it?...
  22. A function return a dataset do not work in for loop

    I use a function to return dataset in which passing a store procedure and MereberID.

    It works fine for calling one time but once in for loop, it only works for first loop.

    When i=0, it works...
  23. Replies
    4
    Views
    353

    Re: Convert word to pdf

    I use your code to create a project using loop to convert all doc file in a folder.
    There is an error said "xxx file is read only"/"xxx file was locked".
    It seems to me that file is not closed....
  24. Replies
    1
    Views
    120

    Close word document

    I copied code from

    http://www.vbforums.com/showthread.php?774585-Convert-word-to-pdf

    as below. First time is ok but second time got an error said that "file was locked...by user....".
    How to...
  25. Replies
    2
    Views
    160

    List files in one folder but got an error

    I use code below to list files in listbox1 but an item "~$0020419.doc" was listing there. I reboot pc but no luck. Why?

    In C:\test\, there are only 3 files: 100020419.doc, 100025818.doc and...
  26. Replies
    4
    Views
    353

    Re: Convert word to pdf

    Thank you for help. Once I install word 2010, it is working now.
    My project need to merge two pdf files, one is from Crystal report and another is from word.
    Is it possible to output to...
  27. Replies
    4
    Views
    353

    Convert word to pdf

    I use code below to convert word file to pdf file but never have luck and no error as well.
    Is there something need to update?

    Private Sub Word2PDF(ByVal wordFilePath As String, ByVal...
  28. Thread: Merge PDF files

    by aspfun
    Replies
    1
    Views
    162

    Merge PDF files

    In my vb.net project I need to merge two PDF files.

    1) One is from crystal report which export as A.PDF. This part was finished.

    2) Another is from word file. I need to code to read doc file...
  29. Code to embedding DOC's dynamically in Crystal Reports

    I was assigned a project which need to do the following jobs:

    1) Print cover letter in which display member name and address based on memberID in Member table (Done)

    2) Using the same memberID...
  30. Replies
    1
    Views
    171

    Alternate row color in blank line

    I designed to print 20 lines in detail section.


    If records are 53 lines the report will print 3 pages.


    I code in CR detail section to make Alternate Row Color


    if recordnumber mod 2 =0...
  31. Replies
    0
    Views
    158

    Make image to back in Crystal Report

    I have a form as jpg file in which there are some member information need to fill.

    I created a crystal report in asp.net, inserted this jpg file as ole object, painbrush picture.

    I drag a field...
  32. Is it possible to use datatable as data source in CR?

    I knew how to use dataset as data source in CR.

    Is it possible to use datatable as data source in CR, like below?

    Rpt.SetDataSource(myDs.table(3))

    The reason is in myDs there are about 10...
  33. Send an email with attached order pdf file from file server

    There are many customer' order as pdf file stored in one file server.

    In intranet, my app just open url (file path) to display pdf file on the screen.

    Now, boss want me to create a asp.net app...
  34. Loading combo box data after page displaying

    My win app need to load data in 5 combo boxes. This will take a bit long time to display page.
    Is there a way to display page first and then load data for combo boxes?
  35. Replies
    7
    Views
    333

    Re: Query string in windows app

    I tried but got two errors said that
    arguments.Count is not a member of "system.array"
    'c' is not declared.
  36. Replies
    7
    Views
    333

    Query string in windows app

    My asp.net app will take query string as parameters like below:

    thhp://order.aspx?ordername=aaa&ordercity=london

    Can windows app do the same way? like below:

    order.exe aaa london
    ...
  37. Replies
    0
    Views
    156

    Publish and prerequisite

    I use Publish to compile Win form app in VS2010.
    I select "Vs2010 tools for office runtime" in prerequisites and create a setup file.
    Once run setup got an error said:

    "Fatal error during...
  38. Clear text box with date input mask like 00/00/0000

    How to code to clear text box with date input mask like 00/00/0000?
  39. How to use loop to add receipts one by one?

    I used code below to send an email to multiple users. It works fine.

    mail.[To].Add("aaa@mycompany.com")
    mail.CC.Add("bbb@mycompany.com")
    mail.CC.Add("ccc@mycompany.com")...
  40. How to clear the reference of report document?

    I used code below to export Crystal Report to file server but got "reach max print job" error.

    How to clear the reference of report document? After rpt.Export(), adding rpt.close() and...
Results 1 to 40 of 366
Page 1 of 10 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.