111790
(Maikeyeeeee)
June 18, 2024, 2:14am
1
開発環境では問題なかったのですが、
運用環境でテストしたところ、
クリップボードに値コピーするところが何度やっても
OpenClipboard に失敗しました (0x800401D0 (CLIPBRD_E_CANT_OPEN))
となります
回避策、対応策はありますでしょうか
(Clipboard.Clear をするとよい、と開発者系のブログで見ましたが、
StudioXでどのように実装すればよいのかわかりません)
アドバイスなど よろしくお願いします
変数の値を設定(Xには[クリップボードに設定]アクティビティがないので代替)
実行時エラー
Parvathy
(PS Parvathy)
June 18, 2024, 2:34am
2
Hi @111790
In Set Variable Value you have give the same below syntax:
ClipboardX.StringValue = strvar
In Write Cell Excel activity in What to Write pass ClipboardX.StringValue
and in where to write pass the Cell Value where you want to write.
This should work.
Regards
111790
(Maikeyeeeee)
June 18, 2024, 2:47am
3
Thank you for your comment.
I didn’t describe what I wanted to do enough.
It is not a process that I want to fit into an Excel cell.
It is a process to input values read from an Excel file
It is a process to input values read from an Excel file into an input screen of another system.
If the screen item in question is an activity that says
[The “Enter text” activity is not a good way to input values
The “Enter text” activity does not work well with values that contain line feed codes, so we need to use the clipboard and press Ctrl+V.
I am using the clipboard and copying and pasting the value using Ctrl+V.
It works fine on the development terminal…
Parvathy
(PS Parvathy)
June 18, 2024, 3:00am
4
Hi @111790
After copying the value to clipboard Ctrl+V is also an way to paste the values.
Regards
Yoichi
(Yoichi)
June 18, 2024, 3:35am
5
こんにちは
このエラーが出ても、値は正しくセットされているケースもあるようなので
取り急ぎその変数の値を設定アクティビティを直接トライキャッチで囲ってみて
一旦例外を回避しておいて、その後値がクリップボードに正しくセットされているかを
確認してみてはと思います。
1 Like
111790
(Maikeyeeeee)
June 18, 2024, 4:18am
6
Yoichiさま
ありがとうございます
StudioXで トライキャッチ は使えましたでしょうか?
111790
(Maikeyeeeee)
June 18, 2024, 4:49am
7
StudioX で トライキャッチを使おうとしてみましたが、
Tryにアクティビティを設置しようとしたら
↓のようなエラーがでて設置できませんでした(泣)…
Yoichi
(Yoichi)
June 18, 2024, 5:30am
8
こんにちは
バージョンによりこのエラーが出る場合があるようです。(手元の環境でも出ました)
アクティビティをドロップする位置を少し変えてみる等してみて改善しないか確認してみてはと思います。
1 Like
111790
(Maikeyeeeee)
June 18, 2024, 5:44am
9
こんにちは
ありがとうございます
いったんStudioで編集した後、
StudioXで確認できたので大丈夫ぽいです
>このエラーが出ても、値は正しくセットされているケースもあるよう
たしかに該当端末で確認したところ、
エラーは発生するのですが
値は正しくセットされていましたので
エラーをスルーするためのトライキャッチで囲んだら
どうにかうまくいきました
ご助言 ありがとうございました!
大変たすかりましたヽ(^o^)丿
1 Like
system
(system)
Closed
June 21, 2024, 5:45am
10
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.