Comments (6)
Hi,
You can check this issue i explained some details for a workaround
#24
Please try it and tell me if that helps or not
from ngx-export-as.
Hi Wnabil
Thanks for the quick feedback. Doing like you mentioned gave me the error in a below. I tried doing like b below and it only worked on the second click. Obviously the table was yet to be loaded as at when the pdf was generated.
I think the ideal scenario in my case would be to bind the table renderer to the datasource itself and not the table id so that i wouldnt need 2 tables on a page and display both at the point the user is generating report. The end user will be confused . But then this library was probably not built for that purpose. Any ideas on any library built this way?
a. ERROR in src/app/app.component.ts(32,54): error TS2339: Property 'subscribe' does not exist on type 'void'.
b. export class AppComponent {
display: any = false;
exportAs(type: SupportedExtensions, opt?: string) {
this.display = true;
this.config.type = type;
if (opt) {
this.config.options.jsPDF.orientation = opt;
}
this.exportAsService.save(this.config, 'myFile');
from ngx-export-as.
Property 'subscribe' does not exist on type 'void'.
install the latest version first and retry please
from ngx-export-as.
@Hojekunle please confirm so we can close the issue
from ngx-export-as.
Use [hidden] property binding it is helpful
from ngx-export-as.
Well Wnabil, you can close the issue. My thought about using 2 tables and hiding one for export purposes only doesnt seem a good approach. My requirement will be to bind the table to the datasource and not the table Id (so that even when the data is paginated from the server, the tool will export all data and not just data on the first page), so that i can still control pagination, sorting on the server.
Im looking elsewhere until that is supported. Thanks again.
from ngx-export-as.
Related Issues (20)
- Error: webpack < 5 (Angular 12) HOT 3
- Unable to view the data in exported excel when the size of data is more than 500 records HOT 7
- Angular 13 Support HOT 1
- Upgrade to 1.13 with Angular 13 fails due to xmlbuilder2 dependency HOT 1
- How to download the table which is having pagination HOT 1
- Namespace '"@angular/core/core"' has no exported member HOT 2
- Can't resolve 'fs' in html-to-docx package. I got this error and i dont know to fix it. HOT 3
- TypeError: Cannot read properties of undefined (reading 'colSpan') HOT 1
- Any plans to support Angular 14 in the near future? HOT 1
- Support for Angular 15 HOT 3
- Exported CSV displying non-english characters currupted HOT 2
- [Question] line break issue in textArea HOT 2
- Could not resolve dependency: peer @angular/common@"^10.1.3" from [email protected] node_modules/ngx-export-as ngx-export-as@"*" from the root project HOT 2
- Cannot export Option Value HOT 1
- Support Angular 11 HOT 2
- how to add utf-8 encode when export csv HOT 2
- Gap at the top of the generated PDF if I scrolled down the page HOT 1
- PDF Page break. HOT 1
- Add support for changing delimiter in CSV or support for double quoting data if it contains comma(,) in data HOT 1
- Module not found: Error: Can't resolve 'util' in 'E:\potatoLogics\name\node_modules\xmlbuilder2\lib' HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-export-as.