How to insert/ put image in an excel file from your Android App?

preview_player
Показать описание
This video shows the steps to insert images in your excel file. It uses apache implementation and uses HSSFSheet to insert the image at a particular position (anchor) in the sheet.

Complete source code and other details can be found in the below link:

However, the main Java code is copied below also for reference:

import android.Manifest;

public class MainActivity extends AppCompatActivity {

private EditText editText;
private ImageView imageView;

private File filePath = null;

@Override
protected void onCreate(Bundle savedInstanceState) {

PackageManager.PERMISSION_GRANTED);

}

public void buttonInsertImage(View view){
try {

ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
HSSFWorkbook hssfWorkbook = new HSSFWorkbook();

FileOutputStream fileOutputStream = new FileOutputStream(filePath);

if (fileOutputStream!=null){
}
}
catch (Exception e){
}
}
}
Рекомендации по теме
Комментарии
Автор

Sir please upload simulink stateflow videos more related to MBD.

nk-swtt
Автор

How to convert xls into pdf, please can you help me

aliprogramer
Автор

how we can display excel file in android studio?

aenaqadeer
Автор

Can you help me, to make an attendance app using Kotlin

thrishinanchan
Автор

Hi, my name is Rifqi and I come from Indonesia, currently in my country everyone is playing Higgss domino island, can you make cheatss / mod apkk / tricks tricks that are not detected and can used in the game? please help sir, so that our family life can change, good luck, .

rifqiggkrinyol
join shbcf.ru