Accroding to your description,as far as I think,while you use StringWriter to RenderControl,you don't get the QR code. Beacuse QR code is generated using jquery. So,there are three methods to export QR code to excel:
1.Export image and gridview with jquery using
SheetJS. However,it isn't for free.
2.Pass your QR code image to code-behind using base64. Then you could use Epplus to insert image to the excel.
3.I suggest you could use this way.You could generate QR code in the code-behind.And then you could use Epplus.
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
There's no way to use jquery or javascript to export data to excel. Because these:
1.There's no plugin for free to export QR code to image.
2.The SheetJS plugin affect your effect because when you use jquery to export data to excel from server side,it will reload again.
So,I suggest you could generate QR code and export QR code and data in the code-behind.And then you could use ajax fetch excel from server side.
If you have problems of code-behind,you could post your problems.We are willing to help you.
Best regards,
Yijing Sun
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Get dotnet job support and join the dotnet community to read blogs, tutorials, watch videos and interact on forums http://www.dotnet.idn-kxchange.com/forums/recent_topics
Member
289 Points
664 Posts
GRIDVIEW QR CODE EXPORT TO EXCEL QR CODE MISSING
Dec 15, 2020 06:47 AM|Gopi.MCA|LINK
Hello
This is my complete
aspx code
C#
when I click export to excel button its not showing qr code in excel..
Contributor
3380 Points
1284 Posts
Re: GRIDVIEW QR CODE EXPORT TO EXCEL QR CODE MISSING
Dec 16, 2020 06:33 AM|yij sun|LINK
Hi Gopi.MCA,
Accroding to your description,as far as I think,while you use StringWriter to RenderControl,you don't get the QR code. Beacuse QR code is generated using jquery. So,there are three methods to export QR code to excel:
1.Export image and gridview with jquery using SheetJS. However,it isn't for free.
2.Pass your QR code image to code-behind using base64. Then you could use Epplus to insert image to the excel.
3.I suggest you could use this way.You could generate QR code in the code-behind.And then you could use Epplus.
More details,you could refer to below articles:
https://stackoverflow.com/questions/11588704/adding-images-into-excel-using-epplus
https://forums.asp.net/t/2071710.aspx?Export+Images+From+A+Directory+To+Excel+Using+EPplus
Best regards,
Yijing Sun
Member
289 Points
664 Posts
Re: GRIDVIEW QR CODE EXPORT TO EXCEL QR CODE MISSING
Dec 20, 2020 07:17 PM|Gopi.MCA|LINK
Hello
Any code using jquery or javascript..
Thanking You
Contributor
3380 Points
1284 Posts
Re: GRIDVIEW QR CODE EXPORT TO EXCEL QR CODE MISSING
Dec 21, 2020 08:14 AM|yij sun|LINK
Hi Gopi.MCA,
There's no way to use jquery or javascript to export data to excel. Because these:
1.There's no plugin for free to export QR code to image.
2.The SheetJS plugin affect your effect because when you use jquery to export data to excel from server side,it will reload again.
So,I suggest you could generate QR code and export QR code and data in the code-behind.And then you could use ajax fetch excel from server side. If you have problems of code-behind,you could post your problems.We are willing to help you.
Best regards,
Yijing Sun
None
0 Points
8 Posts
Re: GRIDVIEW QR CODE EXPORT TO EXCEL QR CODE MISSING
Jan 05, 2021 06:17 PM|MeghanaVijay|LINK
Get dotnet job support and join the dotnet community to read blogs, tutorials, watch videos and interact on forums http://www.dotnet.idn-kxchange.com/forums/recent_topics