| |

VerySource

 Forgot password?
 Register
Search
View: 666|Reply: 7

〓〓About the word save picture problem〓〓

[Copy link]

2

Threads

8

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-1-30 21:00:01
| Show all posts |Read mode
I now want to put the pictures on the server. Loaded into word, I don't know how to get it. I have thought about using flow, but I don't have too many ideas! ~ Please give some advice when the master passes by! ~

I originally wrote the path to save the picture. The picture on the server was deleted. The picture information in word was gone. Depressed! ~ To be changed now! ~~ Urgent ... Waiting for your guidance online ~~
Reply

Use magic Report

0

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 Invalid IP Address

Post time: 2020-3-11 12:30:01
| Show all posts
excel to have ready-made components to achieve
Reply

Use magic Report

0

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-3-11 15:45:01
| Show all posts
use OLE via Jini
After obtaining the ActiveDocument object, use ActiveDocument.Shapes.AddPicture
Reply

Use magic Report

2

Threads

8

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

 Author| Post time: 2020-3-11 18:45:01
| Show all posts
On the third floor. I heard you can. But I never used it. Don't know how to get it. Can you give an example, it is better to have comments. Thank you ~!
Reply

Use magic Report

0

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-3-12 14:45:01
| Show all posts
First create the OLE object of Word.Application, let the object name be WordApp, then use WordApp.Documents.Add ... to create a document object, and then use the document object. Shapes.AddPicture to try.

More detailed, even routines, there are no ready-made, not found online, I simply have no environment here, talk on paper, you have to try it yourself.
Reply

Use magic Report

0

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-3-12 18:15:02
| Show all posts
Just finished, I found one, for reference:

import java.awt.event.ActionEvent;
import application.Application;
import application.EAbstractAction;
import application.workbooks.Workbook;
import application.workbooks.workbook.documents.Document;

public class CustomObj
{
Private Shapes shapes;
Public CustomObj ()
{
Workbooks workbooks = Application.getWorkbooks ();
If (workbooks! = Null)
{
Workbook workbook = workbooks.getActiveWorkbook ();
If (workbook! = Null)
{
Shapes = workbook.getActiveShapes ();
}
}
}
Public boolean create ()
{
If (shapes! = Null)
{
Shape Shape shape = shapes.addPicture ("C: /pic.jpg");
Shape.setPlugID (1);
Shape.setPlugSubID (0);
Return true;
}
Return false;
}
}
Reply

Use magic Report

2

Threads

8

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

 Author| Post time: 2020-3-13 12:15:01
| Show all posts
Excuse me, do you use any jar package! ~ What does Shapes mean! ~ This thing you gave me. I don't understand why. Depressed ~~! Under JAVA environment. It's all wrong! ~
Reply

Use magic Report

2

Threads

8

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

 Author| Post time: 2020-3-22 17:15:01
| Show all posts
No one answered ????????????????
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