| |

VerySource

 Forgot password?
 Register
Search
View: 2127|Reply: 12

Problems of VC operating WORD and excel files

[Copy link]

1

Threads

4

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-10-14 10:00:01
| Show all posts |Read mode
How to open the binary data stream (word or excel document) read from the database with word or excel. After user modification, save it back to the database.
Reply

Use magic Report

0

Threads

25

Posts

19.00

Credits

Newbie

Rank: 1

Credits
19.00

 China

Post time: 2020-10-14 12:15:01
| Show all posts
May need to use temporary files and VBA
The database data is saved as a temporary file and modified with VBA,
Save it after modifying.
Reply

Use magic Report

0

Threads

10

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-10-14 12:30:01
| Show all posts
You can find a routine for handling excel online,
Just look at it. I've done it before, but it's been a long time and I forgot. . . . Sorry
Reply

Use magic Report

0

Threads

22

Posts

23.00

Credits

Newbie

Rank: 1

Credits
23.00

 China

Post time: 2020-10-14 13:15:01
| Show all posts
You can use the OLE automation server type of word/excel to access the corresponding BLOB type field of the database
Reply

Use magic Report

0

Threads

59

Posts

43.00

Credits

Newbie

Rank: 1

Credits
43.00

 China

Post time: 2020-10-14 13:45:01
| Show all posts
It is estimated that IE browses Excel and Word documents on the Internet as a data flow method
Reply

Use magic Report

0

Threads

9

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-10-14 14:15:01
| Show all posts
There is an example of VC operation word in vckbase, you can find it
The last time I used JSP to make things, I also encountered the same problem, but I was unable to make one to process WORD stream. I used a control on the Internet and source code. Although it is a JSP file, I think the principles and ideas It should be the same, if you are interested, I can send it to you
Reply

Use magic Report

1

Threads

4

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

 Author| Post time: 2020-10-14 15:00:01
| Show all posts
In word or excel, without VBA, can the user save the problem?
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-10-14 15:15:01
| Show all posts
COM development, Word, Excel already support COM development. Use COM objects directly.
Reply

Use magic Report

0

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-10-14 15:30:01
| Show all posts
a way:
1. Read the file from the database and save it as a temporary file;
2. Use ShellExecute

The second method:
1. Read the file from the database and save it as a temporary file;
2. Use Word, Excel automated method operation
Reply

Use magic Report

1

Threads

4

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

 Author| Post time: 2020-10-14 15:45:01
| Show all posts
Save as a temporary file. This method is unnecessary. This method has no way to control the user's save operation. Because also write the user's save back to the database.
to:
sunleon1978
COM development, Word, Excel already support COM development. Use COM objects directly.
Can you be more detailed
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list